Skip to content

Commit

Permalink
Define the model.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Mar 23, 2012
1 parent c493c40 commit 8724cd2
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -45,8 +45,9 @@
end
else
it "should raise an exception on Rails < 3.1" do
model = define_model(:litter)
lambda do
@parent.should query_the_database(1.times).when_calling(:count)
model.should query_the_database(1.times).when_calling(:count)
end.should raise_exception(RuntimeError, "Rails 3.1 or greater is required")
end
end
Expand Down

0 comments on commit 8724cd2

Please sign in to comment.