Created
October 6, 2009 21:54
-
-
Save jbrains/203497 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
describe "the logical view" do | |
context "when the user tries to register" do | |
context "when the user is under 13 years of age" do | |
it "should prevent the user from submitting the form" do | |
# Code to set up the logical view and application elided | |
application.should_not_receive(:post) | |
form.age = 12 | |
form.submit | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment