I’m using RSpec.
describe UserController do
it “should require …” do
post :login, {:name => ‘root’}
puts response.body.to_yaml
end
end
…— user/login
???
I’m using RSpec.
describe UserController do
it “should require …” do
post :login, {:name => ‘root’}
puts response.body.to_yaml
end
end
…— user/login
???
What’s the question here… I’m confused.
I’m expecting the body portion of the html page. For instance, on an
action that redirects, I’ve seen
— You are being redirected. (for response, not just
response.body).
I cannot do any tests on the body of the failing response because it
is just the string ‘user/login’.
BTW, I have called integrate_views, so that should not be the problem.
Also, it appears that
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs