# Response.body == filename?

**URL:** <https://www.ruby-forum.com/t/response-body-filename/131506>\
**Category:** Rails\
**Created:** [March 10, 2008, 8:15pm UTC](https://www.ruby-forum.com/t/response-body-filename/131506 "2008-03-10T20:15:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![student](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecc23a/32.png) [@student](https://www.ruby-forum.com/u/student)\
**Post date:** [March 10, 2008, 8:15pm UTC](https://www.ruby-forum.com/t/response-body-filename/131506/1 "2008-03-10T20:15:11Z")

</div>

I’m using RSpec.

describe UserController do  
it “should require …” do  
post :login, {:name =\> ‘root’}  
puts response.body.to\_yaml  
end  
end

…— user/login

???

---

<div class="post-metadata">

**Author:** ![student](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecc23a/32.png) [@student](https://www.ruby-forum.com/u/student)\
**Post date:** [March 10, 2008, 8:37pm UTC](https://www.ruby-forum.com/t/response-body-filename/131506/2 "2008-03-10T20:37:39Z")

</div>

What’s the question here… I’m confused.

---

<div class="post-metadata">

**Author:** ![student](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecc23a/32.png) [@student](https://www.ruby-forum.com/u/student)\
**Post date:** [March 10, 2008, 9:08pm UTC](https://www.ruby-forum.com/t/response-body-filename/131506/3 "2008-03-10T21:08:50Z")

</div>

I’m expecting the body portion of the html page. For instance, on an  
action that redirects, I’ve seen  
— You are being [redirected](http://test.host/%0Auser/). (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
