<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1 +1,4 @@
-environments
\ No newline at end of file
+environments
+*.log
+tmp
+vendor
\ No newline at end of file</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -36,6 +36,7 @@ module Test #:nodoc:
           class &lt;&lt; suite
             attr_accessor :test_class
             def run_with_scenarios(*args, &amp;block)
+              debugger
               run_without_scenarios(*args, &amp;block)
               test_class.table_config.loaded_scenarios.each { |s| s.unload } if test_class.table_config
             end</diff>
      <filename>lib/scenarios/extensions/test_case.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,23 @@
 require File.expand_path(File.dirname(__FILE__) + &quot;/spec_helper&quot;)
 
+class ExplodesOnSecondInstantiationScenario &lt; Scenario::Base
+  cattr_accessor :instance
+  def initialize(*args)
+    raise &quot;Should only be created once&quot; if self.class.instance
+    self.class.instance = super(*args)
+  end
+end
+
+describe &quot;Scenario loading&quot; do
+  scenario :explodes_on_second_instantiation
+  
+  it &quot;should work&quot; do
+  end
+  
+  it 'should work again' do
+  end
+end
+
 describe &quot;Scenario loading&quot; do
   it &quot;should load from configured directories&quot; do
     Scenario.load(:empty)
@@ -20,29 +38,6 @@ describe &quot;Scenario loading&quot; do
     klass.new.methods.should include('hello')
   end
   
-  it &quot;should load the scenarios only once per test class/example group, then unload at the end, even on exception of any test&quot; do
-    debugger
-    tracking_scenario = Class.new((:things).to_scenario) do
-      cattr_accessor :instance
-      def initialize(*args)
-        raise &quot;Should only be created once&quot; if self.class.instance
-        self.class.instance = super(*args)
-      end
-    end
-    
-    test_case = Class.new(Test::Unit::TestCase) do
-      scenario tracking_scenario
-      def test_something; end
-      def test_bad_stuff
-        # raise &quot;bad stuff&quot;
-      end
-    end
-    
-    test_case.suite.run
-    
-    tracking_scenario.instance.should be_unloaded
-  end
-  
   it &quot;should provide a built-in scenario named :blank which clears all tables found in schema.rb&quot; do
     Scenario.load(:blank)
     BlankScenario</diff>
      <filename>spec/scenarios_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,24 @@
 require File.expand_path(File.dirname(__FILE__) + '/../testing/plugit_descriptor')
+
+TESTING_ROOT = File.expand_path(&quot;#{File.dirname(__FILE__)}/../testing&quot;)
+TESTING_TMP = &quot;#{TESTING_ROOT}/tmp&quot;
+
+require 'fileutils'
+FileUtils.mkdir_p(TESTING_TMP)
+FileUtils.touch(&quot;#{TESTING_TMP}/test.log&quot;)
+
+require 'logger'
+RAILS_DEFAULT_LOGGER = Logger.new(&quot;#{TESTING_TMP}/test.log&quot;)
+RAILS_DEFAULT_LOGGER.level = Logger::DEBUG
+
+ActiveRecord::Base.silence do
+  ActiveRecord::Base.configurations = {'sqlite3' =&gt; {
+    'adapter' =&gt; 'sqlite3',
+    'database' =&gt; &quot;#{TESTING_TMP}/sqlite3.db&quot;
+  }}
+  ActiveRecord::Base.establish_connection 'sqlite3'
+  load &quot;#{TESTING_ROOT}/schema.rb&quot;
+end
+
 require &quot;models&quot;
 require &quot;scenarios&quot;
\ No newline at end of file</diff>
      <filename>spec/spec_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,32 +8,21 @@ RAILS_ROOT = File.expand_path(&quot;#{File.dirname(__FILE__)}/..&quot;)
 
 Plugit.describe do |scenarios|
   scenarios.environments_root_path = File.dirname(__FILE__) + '/environments'
+  vendor_directory = File.expand_path(File.dirname(__FILE__) + '/../vendor/plugins')
   
   scenarios.environment :default, 'Released versions of Rails and RSpec' do |env|
     env.library :rails, :export =&gt; &quot;git clone git://github.com/rails/rails.git&quot; do |rails|
-      rails.before_install { `git co v2.1.0_RC1` }
+      rails.after_update { `git co v2.1.0_RC1` }
       rails.load_paths = %w{/activesupport/lib /activerecord/lib /actionpack/lib}
       rails.requires = %w{active_support active_record action_controller action_view}
     end
     env.library :rspec, :export =&gt; &quot;git clone git://github.com/dchelimsky/rspec.git&quot; do |rspec|
-      rspec.before_install { `git co 1.1.4` }
+      rspec.after_update { `git co 1.1.4 &amp;&amp; mkdir -p #{vendor_directory} &amp;&amp; ln -sF #{File.expand_path('.')} #{vendor_directory + '/rspec'}` }
       rspec.requires = %w{spec}
     end
     env.library :rspec_rails, :export =&gt; &quot;git clone git://github.com/dchelimsky/rspec-rails.git&quot; do |rspec_rails|
-      rspec_rails.before_install { `git co 1.1.4` }
+      rspec_rails.after_update { `git co 1.1.4` }
       rspec_rails.requires = %w{spec/rails}
     end
   end
-  
-  scenarios.environment :known, 'Last know working versions of Rails and RSpec' do |env|
-    env.library :rails, :extends =&gt; scenarios[:default][:rails] do |rails|
-      rails.before_install { `git co v2.1.0_RC1` }
-    end
-    env.library :rspec, :extends =&gt; scenarios[:default][:rspec] do |rspec|
-      rspec.before_install { `git co 1.1.4` }
-    end
-    env.library :rspec_rails, :extends =&gt; scenarios[:default][:rspec_rails] do |rspec_rails|
-      rspec_rails.before_install { `git co 1.1.4` }
-    end
-  end
 end
\ No newline at end of file</diff>
      <filename>testing/plugit_descriptor.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>test/scenarios_test.rb</filename>
    </removed>
    <removed>
      <filename>test/test_helper.rb</filename>
    </removed>
    <removed>
      <filename>testing/database.yml</filename>
    </removed>
    <removed>
      <filename>testing/library.rb</filename>
    </removed>
    <removed>
      <filename>testing/rspec_on_rails_3014.patch</filename>
    </removed>
    <removed>
      <filename>testing/rspec_on_rails_3119.patch</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>02c500d3919ba4c7eab79ecdad5a38501fbe63a3</id>
    </parent>
  </parents>
  <author>
    <name>Adam Williams</name>
    <email>adam@thewilliams.ws</email>
  </author>
  <url>http://github.com/aiwilliams/scenarios/commit/ef11f479976680e1215f4699e6dad4d6ab3e7b88</url>
  <id>ef11f479976680e1215f4699e6dad4d6ab3e7b88</id>
  <committed-date>2008-06-19T11:26:46-07:00</committed-date>
  <authored-date>2008-06-19T11:26:46-07:00</authored-date>
  <message>Tests running again! You need to install plugit gem.</message>
  <tree>55d9348af443f1561fade179898e554ca7922007</tree>
  <committer>
    <name>Adam Williams</name>
    <email>adam@thewilliams.ws</email>
  </committer>
</commit>
