Browse files

Specify the expected error.

  • Loading branch information...
1 parent f841805 commit c493c40fd722b9c94169e4edd350e568e06ef39c @gabebw gabebw committed Mar 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/shoulda/active_record/query_the_database_matcher_spec.rb
View
2 spec/shoulda/active_record/query_the_database_matcher_spec.rb
@@ -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.