Fixed the Rails initializer to integrate with RSpec when needed
This commit is contained in:
parent
d11ab46334
commit
3e70e891fe
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue