<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>.gitignore</filename>
    </added>
    <added>
      <filename>testing/application.rb</filename>
    </added>
    <added>
      <filename>testing/dispatcher.rb</filename>
    </added>
    <added>
      <filename>testing/integration_dsl_controller.rb</filename>
    </added>
    <added>
      <filename>testing/plugit_descriptor.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,52 +1,10 @@
-require 'rubygems'
-gem 'rake'
-require 'rake'
-require 'rake/rdoctask'
-
-require &quot;#{File.dirname(__FILE__)}/spec/environment&quot;
-
-desc &quot;Run all specs&quot;
-task :spec =&gt; [&quot;spec:libs:checkout&quot;] do
-  require &quot;#{RSPEC_ROOT}/lib/spec/rake/spectask&quot;
-  Spec::Rake::SpecTask.new :spec do |t|
-    t.spec_opts = ['--options', &quot;\&quot;#{SPEC_ROOT}/spec.opts\&quot;&quot;]
-    t.spec_files = FileList[&quot;#{SPEC_ROOT}/**/*_spec.rb&quot;]
-  end
-end
-
-namespace :spec do
-  namespace :libs do
-    desc &quot;Prepare workspace for running our specs&quot;
-    task :checkout do
-      mkdir_p SUPPORT_LIB
-      libs = {
-        RSPEC_ROOT          =&gt; &quot;http://rspec.rubyforge.org/svn/trunk/rspec&quot;,
-        RSPEC_ON_RAILS_ROOT =&gt; &quot;http://rspec.rubyforge.org/svn/trunk/rspec_on_rails&quot;,
-        ACTIONPACK_ROOT     =&gt; &quot;http://svn.rubyonrails.org/rails/trunk/actionpack/&quot;,
-        ACTIVESUPPORT_ROOT  =&gt; &quot;http://svn.rubyonrails.org/rails/trunk/activesupport/&quot;
-      }
-      needed = libs.keys.select { |dir| not File.directory?(dir) }
-      if needed.empty?
-        puts &quot;Support libraries are in place. Skipping checkout.&quot;
-      else
-        needed.each { |root| system &quot;svn export #{libs[root]} #{root}&quot; }
-      end
-    end
-    
-    desc &quot;Remove libs from tmp directory&quot;
-    task :clean do
-      rm_rf SUPPORT_LIB
-      puts &quot;cleaned #{SUPPORT_LIB}&quot;
-    end
-  end
-end
+require File.expand_path(File.dirname(__FILE__) + '/testing/plugit_descriptor')
 
+require 'rake/rdoctask'
 Rake::RDocTask.new(:doc) do |r|
   r.title = &quot;Rails Scenarios Plugin&quot;
   r.main = &quot;README&quot;
   r.options &lt;&lt; &quot;--line-numbers&quot;
   r.rdoc_files.include(&quot;README&quot;, &quot;LICENSE&quot;, &quot;lib/**/*.rb&quot;)
   r.rdoc_dir = &quot;doc&quot;
-end
-  
-task :default =&gt; :spec
\ No newline at end of file
+end
\ No newline at end of file</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,4 @@
 require File.dirname(__FILE__) + '/../spec_helper'
-require 'integration_dsl_controller'
 
 describe &quot;submit_form&quot;, :type =&gt; :controller do
   include Spec::Integration::DSL</diff>
      <filename>spec/dsl/form_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,9 +2,14 @@ require File.dirname(__FILE__) + '/../spec_helper'
 
 describe &quot;An integration spec&quot;, :type =&gt; :integration do
   it &quot;should provide all the normal integration support&quot; do
-    get &quot;/&quot;
-    response.should_not be_nil
-    open_session.should_not == @integration_session
+    with_routing do |set|
+      set.draw do |map|
+        map.root :controller =&gt; 'integration_dsl'
+        get &quot;/&quot;
+        response.should_not be_nil
+        open_session.should_not == @integration_session
+      end
+    end
     
     with_routing do |set|
       set.draw do |map|</diff>
      <filename>spec/dsl/integration_spec_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 require File.dirname(__FILE__) + '/../spec_helper'
-require 'integration_dsl_controller'
 
-describe Spec::Integration::DSL, &quot;find_anchor&quot;, :type =&gt; :controller do
+describe &quot;find_anchor&quot;, :type =&gt; :controller do
+  include Spec::Integration::DSL
   controller_name :integration_dsl
   
   before do
@@ -19,7 +19,8 @@ describe Spec::Integration::DSL, &quot;find_anchor&quot;, :type =&gt; :controller do
   end
 end
 
-describe Spec::Integration::DSL, &quot;have_navigated_successfully&quot;, :type =&gt; :controller do
+describe &quot;have_navigated_successfully&quot;, :type =&gt; :controller do
+  include Spec::Integration::DSL
   controller_name :integration_dsl
   
   it &quot;should report the exception in the failure message&quot; do</diff>
      <filename>spec/dsl/navigation_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,29 +1,8 @@
-require File.dirname(__FILE__) + &quot;/../spec/environment&quot;
+require File.expand_path(File.dirname(__FILE__) + &quot;/../testing/plugit_descriptor&quot;)
 
-unless defined? DATABASE_ADAPTER
-  $: &lt;&lt; &quot;#{SPEC_ROOT}&quot;
-  $: &lt;&lt; &quot;#{PLUGIN_ROOT}/lib&quot;
-  $: &lt;&lt; &quot;#{RSPEC_ROOT}/lib&quot;
-  $: &lt;&lt; &quot;#{ACTIONPACK_ROOT}/lib&quot;
-  $: &lt;&lt; &quot;#{ACTIVERECORD_ROOT}/lib&quot;
-  $: &lt;&lt; &quot;#{ACTIVESUPPORT_ROOT}/lib&quot;
-  $: &lt;&lt; &quot;#{RSPEC_ON_RAILS_ROOT}/lib&quot;
+def fail_with(message)
+  raise_error(Spec::Expectations::ExpectationNotMetError, message)
+end
 
-  require 'active_support'
-  require 'active_record'
-  require 'action_controller'
-  require 'action_view'
-  
-  require 'spec'
-  require 'spec/rails'
-  require 'spec/integration'
-  
-  def fail_with(message)
-    raise_error(Spec::Expectations::ExpectationNotMetError, message)
-  end
-  
-  require 'logger'
-  RAILS_DEFAULT_LOGGER = Logger.new(&quot;#{SUPPORT_TEMP}/test.log&quot;)
-  RAILS_DEFAULT_LOGGER.level = Logger::DEBUG
-  ActiveRecord::Base.logger = RAILS_DEFAULT_LOGGER
-end
\ No newline at end of file
+require 'spec/integration'
+require 'integration_dsl_controller'
\ No newline at end of file</diff>
      <filename>spec/spec_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>spec/application.rb</filename>
    </removed>
    <removed>
      <filename>spec/dispatcher.rb</filename>
    </removed>
    <removed>
      <filename>spec/environment.rb</filename>
    </removed>
    <removed>
      <filename>spec/integration_dsl_controller.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>63791a4c1b62e58d67c07bff7215472ae92cbb24</id>
    </parent>
  </parents>
  <author>
    <name>Adam Williams</name>
    <email>adam@thewilliams.ws</email>
  </author>
  <url>http://github.com/aiwilliams/spec_integration/commit/3417791e6900e731fca04f1b451b7dd7e0b2706e</url>
  <id>3417791e6900e731fca04f1b451b7dd7e0b2706e</id>
  <committed-date>2008-06-19T12:44:42-07:00</committed-date>
  <authored-date>2008-06-19T12:44:42-07:00</authored-date>
  <message>Updated to use plugit gem. Running against rails/rspec edge.</message>
  <tree>f704a0b2afcf0032c278b652d0fe8302f5645497</tree>
  <committer>
    <name>Adam Williams</name>
    <email>adam@thewilliams.ws</email>
  </committer>
</commit>
