Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed the Rails initializer to integrate with RSpec when needed

  • Loading branch information...
commit 3e70e891feff895f8fd31210136dc0a8d7cd7935 1 parent d11ab46
@jferris jferris authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 rails/init.rb
View
8 rails/init.rb
@@ -1 +1,7 @@
-require 'shoulda/rails' if RAILS_ENV == 'test'
+if RAILS_ENV == 'test'
+ if defined? Spec
+ require 'shoulda/rspec'
+ else
+ require 'shoulda/rails'
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.