<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>cucumber.yml</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,19 +1,4 @@
 gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f &gt;= 1.9
-rspec_gem_dir = nil
-Dir[&quot;#{RAILS_ROOT}/vendor/gems/*&quot;].each do |subdir|
-  rspec_gem_dir = subdir if subdir.gsub(&quot;#{RAILS_ROOT}/vendor/gems/&quot;,&quot;&quot;) =~ /^(\w+-)?rspec-(\d+)/ &amp;&amp; File.exist?(&quot;#{subdir}/lib/spec/rake/spectask.rb&quot;)
-end
-rspec_plugin_dir = File.expand_path(File.dirname(__FILE__) + '/../../vendor/plugins/rspec')
-
-if rspec_gem_dir &amp;&amp; (test ?d, rspec_plugin_dir)
-  raise &quot;\n#{'*'*50}\nYou have rspec installed in both vendor/gems and vendor/plugins\nPlease pick one and dispose of the other.\n#{'*'*50}\n\n&quot;
-end
-
-if rspec_gem_dir
-  $LOAD_PATH.unshift(&quot;#{rspec_gem_dir}/lib&quot;) 
-elsif File.exist?(rspec_plugin_dir)
-  $LOAD_PATH.unshift(&quot;#{rspec_plugin_dir}/lib&quot;)
-end
 
 # Don't load rspec if running &quot;rake gems:*&quot;
 unless ARGV.any? {|a| a =~ /^gems/}
@@ -120,7 +105,6 @@ namespace :spec do
     ::CodeStatistics::TEST_TYPES &lt;&lt; &quot;Helper specs&quot; if File.exist?('spec/helpers')
     ::CodeStatistics::TEST_TYPES &lt;&lt; &quot;Library specs&quot; if File.exist?('spec/lib')
     ::CodeStatistics::TEST_TYPES &lt;&lt; &quot;Routing specs&quot; if File.exist?('spec/routing')
-    ::STATS_DIRECTORIES.delete_if {|a| a[0] =~ /test/}
   end
 
   namespace :db do</diff>
      <filename>lib/tasks/rspec.rake</filename>
    </modified>
    <modified>
      <diff>@@ -1,22 +1,10 @@
 #!/usr/bin/env ruby
-gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f &gt;= 1.9
-rails_root = File.expand_path(File.dirname(__FILE__) + &quot;/..&quot;)
-rspec_gem_dir = nil
-Dir[&quot;#{rails_root}/vendor/gems/*&quot;].each do |subdir|
-  rspec_gem_dir = subdir if subdir.gsub(&quot;#{rails_root}/vendor/gems/&quot;,&quot;&quot;) =~ /^(\w+-)?rspec-(\d+)/ &amp;&amp; File.exist?(&quot;#{subdir}/lib/spec/rake/spectask.rb&quot;)
+if ARGV.any? {|arg| %w[--drb -X --generate-options -G --help -h --version -v].include?(arg)}
+  require 'rubygems' unless ENV['NO_RUBYGEMS']
+else
+  gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f &gt;= 1.9
+  ENV[&quot;RAILS_ENV&quot;] ||= 'test'
+  require File.dirname(__FILE__) + &quot;/../config/environment&quot; unless defined?(RAILS_ROOT)
 end
-rspec_plugin_dir = File.expand_path(&quot;#{rails_root}/vendor/plugins/rspec&quot;)
-
-if rspec_gem_dir &amp;&amp; (test ?d, rspec_plugin_dir)
-  raise &quot;\n#{'*'*50}\nYou have rspec installed in both vendor/gems and vendor/plugins\nPlease pick one and dispose of the other.\n#{'*'*50}\n\n&quot;
-end
-
-if rspec_gem_dir
-  $LOAD_PATH.unshift(&quot;#{rspec_gem_dir}/lib&quot;) 
-elsif File.exist?(rspec_plugin_dir)
-  $LOAD_PATH.unshift(&quot;#{rspec_plugin_dir}/lib&quot;)
-end
-
-
 require 'spec/autorun'
 exit ::Spec::Runner::CommandLine.run</diff>
      <filename>script/spec</filename>
    </modified>
    <modified>
      <diff>@@ -1,52 +1,9 @@
 #!/usr/bin/env ruby
 gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f &gt;= 1.9
-rails_root = File.expand_path(File.dirname(__FILE__) + &quot;/..&quot;)
-rspec_rails_gem_dir = nil
-Dir[&quot;#{rails_root}/vendor/gems/*&quot;].each do |subdir|
-  rspec_rails_gem_dir = subdir if subdir.gsub(&quot;#{rails_root}/vendor/gems/&quot;,&quot;&quot;) =~ /^(\w+-)?rspec-rails-(\d+)/
-end
-rspec_rails_plugin_dir = File.expand_path(&quot;#{rails_root}/vendor/plugins/rspec-rails&quot;)
 
-if rspec_rails_gem_dir &amp;&amp; (test ?d, rspec_rails_plugin_dir)
-  raise &quot;\n#{'*'*50}\nYou have rspec installed in both vendor/gems and vendor/plugins\nPlease pick one and dispose of the other.\n#{'*'*50}\n\n&quot;
-end
-
-if rspec_rails_gem_dir
-  $LOAD_PATH.unshift(&quot;#{rspec_rails_gem_dir}/lib&quot;) 
-elsif File.exist?(rspec_rails_plugin_dir)
-  $LOAD_PATH.unshift(&quot;#{rspec_rails_plugin_dir}/lib&quot;)
-end
+puts &quot;Loading Rails environment&quot;
+ENV[&quot;RAILS_ENV&quot;] ||= 'test'
+require File.dirname(__FILE__) + &quot;/../config/environment&quot; unless defined?(RAILS_ROOT)
 
 require 'optparse'
 require 'spec/rails/spec_server'
-
-puts &quot;Loading Rails environment&quot;
-
-ENV[&quot;RAILS_ENV&quot;] = &quot;test&quot;
-require File.expand_path(File.dirname(__FILE__) + &quot;/../config/environment&quot;)
-
-if Rails::VERSION::STRING &gt;= '2.2' &amp;&amp; Rails.configuration.cache_classes
-  warn &lt;&lt;-MESSAGE
-
-#{'*'*50}
-
-spec_server won't reload your classes if config.cache_classes
-is set to true. Please modify environment/test.rb:
-
-    config.cache_classes = false
-
-#{'*'*50}
-MESSAGE
-end
-
-options = Hash.new
-parser = OptionParser.new
-parser.on(&quot;-d&quot;, &quot;--daemon&quot;)     {|ignore| options[:daemon] = true }
-parser.on(&quot;-p&quot;, &quot;--pid PIDFILE&quot;){|pid|    options[:pid]    = pid  }
-parser.parse!(ARGV)
-
-if options[:daemon]
-  ::Spec::Rails::SpecServer.daemonize(options[:pid])
-else
-  ::Spec::Rails::SpecServer.run
-end</diff>
      <filename>script/spec_server</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>893cdd09442d7d54fed0c53bf56ca794e31e9c2d</id>
    </parent>
  </parents>
  <author>
    <name>Assaf Arkin</name>
    <email>assaf@labnotes.org</email>
  </author>
  <url>http://github.com/intalio/singleshot/commit/6515018abba0efc1d72a149720c1bf9bbd3f649a</url>
  <id>6515018abba0efc1d72a149720c1bf9bbd3f649a</id>
  <committed-date>2009-03-27T12:44:30-07:00</committed-date>
  <authored-date>2009-03-27T12:44:30-07:00</authored-date>
  <message>Upgraded to RSpec 1.2.2, added cucumber.yml file</message>
  <tree>a09bf9c0507af11718f9c9db60a4b093d1e7df37</tree>
  <committer>
    <name>Assaf Arkin</name>
    <email>assaf@labnotes.org</email>
  </committer>
</commit>
