Created
August 14, 2009 20:37
-
-
Save revelation/168091 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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