Mark Wilden wrote:
On Thu, Feb 26, 2009 at 7:59 AM, aslak hellesoy
<aslak.helle...@gmail.com> wrote:

puts response.body

Another debugging technique we use is

When /^I view the response$/ do
  Tempfile.open("response") do |file|
    file.print response.body
    `open "file://#{file.path}"`
    sleep 2
  end
end

///ark
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
If you are using webrat and you want to see the HTML repsonse you can use: save_and_open_page

-Ben
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to