Skip to content
This repository
Browse code

Specify the expected error.

  • Loading branch information...
commit c493c40fd722b9c94169e4edd350e568e06ef39c 1 parent f841805
Gabe Berke-Williams authored
2  spec/shoulda/active_record/query_the_database_matcher_spec.rb
@@ -47,7 +47,7 @@
47 47
     it "should raise an exception on Rails < 3.1" do
48 48
       lambda do
49 49
         @parent.should query_the_database(1.times).when_calling(:count)
50  
-      end.should raise_exception
  50
+      end.should raise_exception(RuntimeError, "Rails 3.1 or greater is required")
51 51
     end
52 52
   end
53 53
 end

0 notes on commit c493c40

Please sign in to comment.
Something went wrong with that request. Please try again.