Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Specify the expected error.

  • Loading branch information...
commit c493c40fd722b9c94169e4edd350e568e06ef39c 1 parent f841805
Gabe Berke-Williams gabebw authored
2  spec/shoulda/active_record/query_the_database_matcher_spec.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.