[rspec-users] render_template on create and update action - unexpected result with namespaced controllers

Adam S. lists at ruby-forum.com
Sun Jan 29 17:22:03 EST 2012

Hi Justin,

Thanks for your reply.  I agree with your suggestions, however the 
response is fine.  Response code == 200 and nothing unusual in the logs.

Note that my non-namespaced controllers with similar tests behave as 
they should.  This weird issue only happens for my namespaced 


Justin Ko wrote in post #1037818:
> On Dec 12, 2011, at 10:16 AM, astjohn wrote:
>>       expecting <"edit"> but rendering with <"">
>> Any help is greatly appreciated.  I've been ignoring these for a while
>> and it's time to fix them.
>> Cheers,
>> Adam
>> _______________________________________________
>> rspec-users mailing list
>> rspec-users at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-users
> An empty response body tells me it's redirecting. Couple ways to check
> that:
> 1.) Use "puts" and "raise" to see if it even gets to the `respond_with`
> 2.) Look at the test logs to see what it's responding with.
> 3.) Use `response.response_code.should eq(200)`

Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list