[rspec-users] [cucumber] noob Q deleteing from a list.

Ben Mabey ben at benmabey.com
Thu Feb 26 14:08:55 EST 2009


Mark Wilden wrote:
> On Thu, Feb 26, 2009 at 7:59 AM, aslak hellesoy
> <aslak.hellesoy at 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 at 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


More information about the rspec-users mailing list