<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -29,16 +29,25 @@ INSTALLATION
 (not yet finalized for the JRuby version)
 See INSTALL.md
 
+TESTS
+-----
+
+To run all specs and features:
+
+  $ rake
+
+NB. Features work with Cucumber version 0.4.2, you may have problems with other versions because for the moment we are patching Cucumber dynamically to support dependencies between sets of features.
+
 TESTS (specs)
 -------------
 
 On OSX:
 
-  jruby -J-XstartOnFirstThread $(which spec) plugins/#{plugin_name}/spec/
+  $ jruby -J-XstartOnFirstThread $(which spec) plugins/#{plugin_name}/spec/
 
 On Linux:
 
-  jruby $(which spec) plugins/#{plugin_name}/spec/
+  $ jruby $(which spec) plugins/#{plugin_name}/spec/
 
   
 TESTS (features)
@@ -46,11 +55,11 @@ TESTS (features)
 
 On OSX:
 
-  jruby -J-XstartOnFirstThread bin/cucumber plugins/#{plugin_name}/features
+  $ jruby -J-XstartOnFirstThread bin/cucumber plugins/#{plugin_name}/features
 
 On Linux:
 
-  jruby bin/cucumber plugins/#{plugin_name}/features/
+  $ jruby bin/cucumber plugins/#{plugin_name}/features/
 
 LICENSE
 -------</diff>
      <filename>README.md</filename>
    </modified>
    <modified>
      <diff>@@ -22,4 +22,49 @@ module Cucumber
       end
     end
   end
-end
+  
+  module RbSupport
+    class RbLanguage
+      def require_support_files(path)
+        @step_mother.load_code_files(Cli::Configuration.code_files_in_paths([path]))
+      end
+    end
+    
+    module RbDsl
+      def RequireSupportFiles(path)
+        RbDsl.require_support_files(path)
+      end
+      
+      class &lt;&lt; self
+        def require_support_files(path)
+          @rb_language.require_support_files(path)
+        end
+      end
+    end
+  end
+  
+  module Cli
+    class Configuration
+      def all_files_to_load
+        requires = @options[:require].empty? ? require_dirs : @options[:require]
+        files = Configuration.code_files_in_paths(requires)
+        remove_excluded_files_from(files)
+        files
+      end
+
+      class &lt;&lt; self
+        def code_files_in_paths(requires)
+          files = requires.map do |path|
+            path = path.gsub(/\\/, '/') # In case we're on windows. Globs don't work with backslashes.
+            path = path.gsub(/\/$/, '') # Strip trailing slash.
+            File.directory?(path) ? Dir[&quot;#{path}/**/*&quot;] : path
+          end.flatten.uniq
+          files.reject! {|f| !File.file?(f)}
+          files.reject! {|f| File.extname(f) == '.feature' }
+          files.reject! {|f| f =~ /^http/}
+          files
+        end
+      end
+    end
+  end
+end
\ No newline at end of file</diff>
      <filename>plugins/application_swt/lib/application_swt/cucumber_patches.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,6 +6,7 @@ module Redcar
       def run_features(args)
         require &quot;cucumber/cli/main&quot;
         require &quot;cucumber&quot;
+        require &quot;cucumber/rb_support/rb_language&quot;
         require &quot;application_swt/cucumber_patches&quot;
         Thread.new do
           begin</diff>
      <filename>plugins/application_swt/lib/application_swt/cucumber_runner.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,7 @@
 Feature: Open a new tab
 
   Scenario: New tab
+    Then the window should have title &quot;Redcar&quot;
     When I press &quot;Cmd+N&quot;
     Then there should be one edit tab
 </diff>
      <filename>plugins/edit_view/features/new_tab.feature</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1 @@
-app_steps = File.dirname(__FILE__) + &quot;/../../../application/features/step_definitions/*&quot;
-root = File.expand_path(File.dirname(__FILE__) + &quot;/../../../../&quot;) + &quot;/&quot;
-Dir[app_steps].each do |fn|
-  require File.expand_path(fn).split(root).last
-end
\ No newline at end of file
+RequireSupportFiles File.dirname(__FILE__) + &quot;/../../../application/features/&quot;</diff>
      <filename>plugins/edit_view/features/support/env.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3b8624058a6f99f6a27641e622763593f6224db4</id>
    </parent>
  </parents>
  <author>
    <name>Daniel Lucraft</name>
    <email>dan@fluentradical.com</email>
  </author>
  <url>http://github.com/danlucraft/redcar/commit/a6f558a5bba7b43b99b3bc4ffb34425362141c1e</url>
  <id>a6f558a5bba7b43b99b3bc4ffb34425362141c1e</id>
  <committed-date>2009-10-21T11:17:12-07:00</committed-date>
  <authored-date>2009-10-21T11:17:12-07:00</authored-date>
  <message>Removed hacky feature dependency loading code in favour of patching Cucumber. Hopefully this will make it's way into the next release of Cucumber</message>
  <tree>cdcf01524bf8ce018c7c89f4e0eeffe22ac9ff07</tree>
  <committer>
    <name>Daniel Lucraft</name>
    <email>dan@fluentradical.com</email>
  </committer>
</commit>
