[Rspec-devel] controller_mixin broken w/EdgeRails
Jay Levitt
lists-rspec at shopwatch.org
Sat Sep 2 22:05:37 EDT 2006
When I try to run a controller spec using edge rails, I get errors like:
NameError in 'The MyController should have no current_user if Vlad
provides the wrong password'
uninitialized constant MyController
I presume this is because MyController now needs to be explicitly
loaded. The following line added to controller_name *seems* to work,
but I'm intentionally not providing it in patch form because I have no
idea if it's the right solution:
require "#{@controller_name}_controller"
Jay Levitt
More information about the Rspec-devel
mailing list