<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -88,10 +88,11 @@ def assert_successful_response
     $browser.goto location
     assert_successful_response
   elsif status != 200
-    tmp = Tempfile.new 'culerity_results'
-    tmp &lt;&lt; $browser.html
-    tmp.close
-    `open -a /Applications/Safari.app #{tmp.path}`
+    filename = &quot;culerity-#{Time.now.to_i}.html&quot;
+    File.open(RAILS_ROOT + &quot;/tmp/#{filename}&quot;, &quot;w&quot;) do |f|
+      f.write $browser.html
+    end
+    `open tmp/#{filename}`
     raise &quot;Browser returned Response Code #{$browser.page.web_response.status_code}&quot;
   end
 end</diff>
      <filename>rails_generators/culerity/templates/features/step_definitions/common_celerity_steps.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>05332319d52948d5879ac3797e1262757c9ded1e</id>
    </parent>
  </parents>
  <author>
    <name>Alexander Kahn</name>
    <email>alexanderkahn@gmail.com</email>
  </author>
  <url>http://github.com/langalex/culerity/commit/429aae336d8e0baa5b50fd65931cdf4b36a55f0e</url>
  <id>429aae336d8e0baa5b50fd65931cdf4b36a55f0e</id>
  <committed-date>2009-10-06T04:04:43-07:00</committed-date>
  <authored-date>2009-10-05T09:16:09-07:00</authored-date>
  <message>Make opening the error page more Webrat-like.
* Enclose writing of the file in a block.
* Do not assume the user uses Safari.
* Save the file with a timestamp within the project's /tmp directory.</message>
  <tree>8aba578ee36a93a5bca98241ce8f6953ec9be1a6</tree>
  <committer>
    <name>Alexander Lang</name>
    <email>alex@upstream-berlin.com</email>
  </committer>
</commit>
