[rspec-users] UJS plugin incompatible with RSpec?

Brad Chase bachase at gmail.com
Sat Dec 16 23:10:04 EST 2006


I was having the same problem with UJS and rspec.  If I move

if ENV['RAILS_ENV'] == 'test' then
  require 'rspec_on_rails'
end

from the rspec init.rb to the end of my environment.rb, then things
work fine.  I think there is some recent additions to rails edge that
handle the order plugins are loaded, but I have yet to investigate it.


More information about the rspec-users mailing list