Re: [rspec-users] problem with get and post methods.. require missing ?

2008-08-14 Thread tgateau
Hello, I got an error when I run my spec test of a controlleur : the get and post methodes are unknown. here is my test file : ## setup_controller_spec.rb : ## require File.dirname(__FILE__) + '/../spec_helper' require #{LIB_DIR}/application require #{LIB_DIR}/setups_controller describe A

Re: [rspec-users] problem with get and post methods.. require missing ?

2008-08-14 Thread tgateau
I have checked : I am in the RAILS_ROOT/spec/controllers directory I have tried with the second solution, but the get and post methodes remain undefined. Could it be a version compatibility problem ? I'm using rails 2.1.0, and the REL_1_1_3 for the rspec plugin. What is the best version of rspec

Re: [rspec-users] problem with get and post methods.. require missing ?

2008-08-14 Thread tgateau
and, is it SetupController or SetupsController ? it's a SetupsController. my controller file is RAILS_ROOT/app/controllers/setups_controller.rb I have just tried with a setups_controller_spec.rb spec file, but the undefined method remains here is my new setups_controller_spec.rb file : in

Re: [rspec-users] problem with get and post methods.. require missing ?

2008-08-14 Thread tgateau
I have updated the plugins, and it seems to be working well indeed ! Thanks Thib On Aug 14, 2008, at 1:12 PM, [EMAIL PROTECTED] wrote: I have checked : I am in the RAILS_ROOT/spec/controllers directory I have tried with the second solution, but the get and post methodes remain undefined.

[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 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/.