Rakefile in simplecov-0.7.1 vs Rakefile in simplecov-0.8.0.pre

- old
+ new

@@ -19,9 +19,14 @@ test.test_files = FileList['test/test_*.rb'] test.verbose = true test.warning = true end -require 'cucumber/rake/task' -Cucumber::Rake::Task.new +# Cucumber integration test suite is for impls that work with simplecov only - a.k.a. 1.9+ +if '1.9+'.respond_to? :encoding + require 'cucumber/rake/task' + Cucumber::Rake::Task.new + task :default => [:test, :cucumber] +else + task :default => [:test] +end -task :default => [:test, :cucumber]