[rspec-users] how to invoke multiple controllers in the same describe block?
Lille
lille.penguini at gmail.com
Fri Sep 3 13:12:43 EDT 2010
Hi,
I seek to authenticate and then test other routing in RSpec, but the
standard RSpec vernacular...
describe SomeController do
it "blah-blah" do
get :new
...
end
end
...doesn't seem to allow me to post my login data, as in the following
pseudo-code:
describe SomeController do
before(:each) do
post :controller=>"authentication", :action=>
"create", :new_session=>{"user_name"=>"Lille"...}
end
...
end
I've scanned all the methods in the RDoc, but I cannot identify the
manner in which I may specify the controller directly. Any help?
Thanks,
Lille
More information about the rspec-users
mailing list