Hello, I'm trying to create a controller test with RSpec but I get the
error when I run
spec login_controller_spec.rb --format specdoc
../../app/controllers/application.rb:4: uninitialized constant
ActionController (NameError)
from
Hello,
Try including your rails config/environment.rb file in your spec_helper:
spec_helper.rb
ENV[RAILS_ENV] = test
require /../config/environment
--
Joseph Wilk
http://www.joesniff.co.uk
--
Posted via http://www.ruby-forum.com/.
___
Bug fixed ! thank you very much !
Hello,
Try including your rails config/environment.rb file in your spec_helper:
spec_helper.rb
ENV[RAILS_ENV] = test
require /../config/environment
--
Joseph Wilk
http://www.joesniff.co.uk
--
Posted via http://www.ruby-forum.com/.