Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Specify the expected error.
  • Loading branch information
Gabe Berke-Williams committed Mar 23, 2012
1 parent f841805 commit c493c40
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -47,7 +47,7 @@
it "should raise an exception on Rails < 3.1" do
lambda do
@parent.should query_the_database(1.times).when_calling(:count)
end.should raise_exception
end.should raise_exception(RuntimeError, "Rails 3.1 or greater is required")
end
end
end

0 comments on commit c493c40

Please sign in to comment.