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.