[rspec-users] can I output the html of the page after calling click_button?

S Ahmed sahmed1020 at gmail.com
Fri Mar 2 03:33:45 UTC 2012


I am not sure why my form submission is failing (request test).

I am calling:

# form is filled in a 'before do' block.

it "should create an account" do
  expect { click_button "Create" }.to change(Account, :count).by(1)
end

Could I somehow view the HTML after the click_button call?

Manually submitting the form works fine for me, so I'm confused.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20120301/44df4ad0/attachment-0001.html>


More information about the rspec-users mailing list