<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -145,7 +145,12 @@ protected
     end
 
     unless File.exist?(@temp_test_db_path)
-     `rake db:reset RAILS_ENV=selenium`
+      if File.exist?(&quot;#{RAILS_ROOT}/db/schema.rb&quot;)
+        `rake db:reset RAILS_ENV=selenium`
+      else
+        `rake db:migrate:reset RAILS_ENV=selenium`
+      end
+
       FileUtils.copy @test_db_path, @temp_test_db_path
     else
       FileUtils.copy @temp_test_db_path, @test_db_path</diff>
      <filename>lib/spec/rails/selenium_story.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0849fda57ee40d1531598be59851522a4b7a8a78</id>
    </parent>
  </parents>
  <author>
    <name>Thomas Marek</name>
    <email>tmak@tmak-laptop.(none)</email>
  </author>
  <url>http://github.com/tmak/rspec-rails-selenium-story/commit/4f58f9e82320cb206eea7f8e2a760bf98ef67b1e</url>
  <id>4f58f9e82320cb206eea7f8e2a760bf98ef67b1e</id>
  <committed-date>2008-10-08T21:32:58-07:00</committed-date>
  <authored-date>2008-10-08T21:32:58-07:00</authored-date>
  <message>Use the db schema to reset the selenium db, otherwise the db mirgrations.</message>
  <tree>5448f7e6d49aa65abab3f3823aa4dffc4bc889b2</tree>
  <committer>
    <name>Thomas Marek</name>
    <email>tmak@tmak-laptop.(none)</email>
  </committer>
</commit>
