[rspec-users] first try to make a controller test with RSpe

2008-08-13 Thread tgateau
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

Re: [rspec-users] first try to make a controller test with RSpe

2008-08-13 Thread Joseph Wilk
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/. ___

Re: [rspec-users] first try to make a controller test with RSpe

2008-08-13 Thread tgateau
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/.