Created
January 22, 2011 05:01
-
-
Save theleoborges/790873 to your computer and use it in GitHub Desktop.
are_you_testing_your_javascript_yet#1
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("Greeter", function() { | |
it("should say Hi", function() { | |
greeter = new Greeter(); | |
expect(greeter.greet()).to(equal, "Hi"); | |
}); | |
it("should render the message 'Hi there' inside the container div", function() { | |
dom_test = $('#dom_test'); | |
dom_test.html(""); | |
greeter = new Greeter(); | |
greeter.render_hi('#container'); | |
expect($('#container').text()).to(equal, "Hi there!"); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment