Skip to content

Instantly share code, notes, and snippets.

@jbrains
Created October 6, 2009 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbrains/203497 to your computer and use it in GitHub Desktop.
Save jbrains/203497 to your computer and use it in GitHub Desktop.
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