Permalink
Browse files

remove broken cuke monkey patch

  • Loading branch information...
1 parent 1f17f2a commit 27c12057d08f02cfeb1303688cfb6c96e1dda31a @dchelimsky dchelimsky committed Jun 11, 2011
Showing with 9 additions and 27 deletions.
  1. +9 −27 Rakefile
View
@@ -7,37 +7,19 @@ require 'rake/rdoctask'
require 'rspec/core/rake_task'
require 'rspec/expectations/version'
-begin
- require 'cucumber/rake/task'
+require 'cucumber/rake/task'
+Cucumber::Rake::Task.new(:cucumber)
- 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)
-
- namespace :cucumber do
- desc "Run cucumber features using rcov"
- Cucumber::Rake::Task.new :rcov => :cleanup_rcov_files do |t|
- t.cucumber_opts = %w{--format progress}
- t.rcov = true
- t.rcov_opts = %[-Ilib -Ispec --exclude "gems/*,features"]
- t.rcov_opts << %[--text-report --sort coverage --aggregate coverage.data]
- end
+namespace :cucumber do
+ desc "Run cucumber features using rcov"
+ Cucumber::Rake::Task.new :rcov => :cleanup_rcov_files do |t|
+ t.cucumber_opts = %w{--format progress}
+ t.rcov = true
+ t.rcov_opts = %[-Ilib -Ispec --exclude "gems/*,features"]
+ t.rcov_opts << %[--text-report --sort coverage --aggregate coverage.data]
end
-
-rescue LoadError => e
- puts "unable to load cucumber, some tasks unavailable"
- task :cucumber do
- #no-op
- end
end
-
task :cleanup_rcov_files do
rm_rf 'coverage.data'
end

0 comments on commit 27c1205

Please sign in to comment.