Skip to content

Instantly share code, notes, and snippets.

@revelation
Created August 14, 2009 20:37
Show Gist options
  • Save revelation/168091 to your computer and use it in GitHub Desktop.
Save revelation/168091 to your computer and use it in GitHub Desktop.
Screw.Unit(function(){
describe("Revelation.video", function() {
describe("display_error", function() {
before(function() { fixture("<div class='test_error'></div>") });
it("should append an error message to a div", function(){
var error_div = $('.test_error');
var error_message = 'You blew up the earth!'
Revelation.video.display_error(error_div, error_message);
expect(error_div.html()).to(match, /You blew up the earth/);
});
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment