Permalink
Browse files

Fixed the Rails initializer to integrate with RSpec when needed

  • Loading branch information...
1 parent d11ab46 commit 3e70e891feff895f8fd31210136dc0a8d7cd7935 @jferris jferris committed Feb 5, 2009
Showing with 7 additions and 1 deletion.
  1. +7 −1 rails/init.rb
View
@@ -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

0 comments on commit 3e70e89

Please sign in to comment.