features/support/env.rb in spork-0.9.0.rc vs features/support/env.rb in spork-0.9.0.rc2

- old
+ new

@@ -1,11 +1,11 @@ require 'rubygems' require 'pathname' require 'fileutils' require 'forwardable' require 'tempfile' -require 'spec/expectations' +require 'rspec/expectations' require 'timeout' require(File.dirname(__FILE__) + '/background_job.rb') SPORK_ROOT = Pathname.new(File.expand_path('../../', File.dirname(__FILE__))) @@ -53,21 +53,9 @@ end end def in_current_dir(&block) Dir.chdir(@current_dir, &block) - end - - def localized_command(command, args) - case command - when 'spork' - command = SporkWorld::BINARY - when 'cucumber' - command = Cucumber::BINARY - else - command = %x{which #{command}}.chomp - end - "#{SporkWorld::RUBY_BINARY} -I #{Cucumber::LIBDIR} #{command} #{args}" end def run(command) stderr_file = Tempfile.new('spork') stderr_file.close