Rakefile in simplecov-0.10.0 vs Rakefile in simplecov-0.11.0

- old
+ new

@@ -10,16 +10,13 @@ system 'bash -c "find . -type f -exec chmod 644 {} \; && find . -type d -exec chmod 755 {} \;"' end # Enforce proper permissions on each build Rake::Task[:build].prerequisites.unshift :fix_permissions -require "rake/testtask" -Rake::TestTask.new(:test) do |test| - test.libs << "lib" << "test" - test.test_files = FileList["test/test_*.rb"] - test.verbose = true - test.warning = true +require "rspec/core/rake_task" +RSpec::Core::RakeTask.new(:spec) do |spec| + spec.pattern = FileList["spec/*_spec.rb"] end begin require "rubocop/rake_task" RuboCop::RakeTask.new @@ -31,9 +28,9 @@ # Cucumber integration test suite is for impls that work with simplecov only - a.k.a. 1.9+ if RUBY_VERSION >= "1.9" require "cucumber/rake/task" Cucumber::Rake::Task.new - task :default => [:test, :cucumber, :rubocop] + task :default => [:spec, :cucumber, :rubocop] else - task :default => [:test] + task :default => [:spec] end