Fixed the Rails initializer to integrate with RSpec when needed

This commit is contained in:
Joe Ferris 2009-02-04 19:41:08 -05:00
parent d11ab46334
commit 3e70e891fe
1 changed files with 7 additions and 1 deletions

View File

@ -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