diff --git a/spec/shoulda/active_record/query_the_database_matcher_spec.rb b/spec/shoulda/active_record/query_the_database_matcher_spec.rb index 8e9f6fb37..0c91514ac 100644 --- a/spec/shoulda/active_record/query_the_database_matcher_spec.rb +++ b/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