Skip to content

Commit

Permalink
fewer re-bundle-execs
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Jul 10, 2010
1 parent 5a19ce4 commit 0ed01dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
9 changes: 7 additions & 2 deletions Rakefile
Expand Up @@ -23,9 +23,14 @@ require 'rspec/core/rake_task'
require 'cucumber/rake/task'

RSpec::Core::RakeTask.new(:spec)
Cucumber::Rake::Task.new(:cucumber) do |t|
t.fork = false
class Cucumber::Rake::Task::ForkedCucumberRunner
# When cucumber shells out, we still need it to run in the context of our
# bundle.
def run
sh "bundle exec #{RUBY} " + args.join(" ")
end
end
Cucumber::Rake::Task.new(:cucumber)

begin
require 'jeweler'
Expand Down
12 changes: 0 additions & 12 deletions features/support/env.rb
@@ -1,17 +1,5 @@
require 'aruba'

module ArubaOverrides
def detect_ruby_script(cmd)
if cmd =~ /^rspec /
"bundle exec ../../../rspec-core/bin/#{cmd}"
else
super(cmd)
end
end
end

World(ArubaOverrides)

unless File.directory?('./tmp/example_app')
system "rake generate:app generate:stuff"
end
Expand Down

0 comments on commit 0ed01dc

Please sign in to comment.