Rails testing: assert render action

Posted by deb on Stack Overflow See other posts from Stack Overflow or by deb
Published on 2010-05-26T19:06:58Z Indexed on 2010/05/26 19:11 UTC
Read the original article Hit count: 231

Filed under:
|

How can I write a test to assert that the action new is rendered?

def method
  ...
  render :action => :new
end

I'm looking for something like:

assert_equal layout, @response.layout
assert_equal format, @request.format

I know I can't do @response.action

Thanks in advance!

Deb

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about testing