Rakefile in mongoid_nested_set-0.1.3 vs Rakefile in mongoid_nested_set-0.2.0
- old
+ new
@@ -25,12 +25,12 @@
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = FileList['spec/**/*_spec.rb']
end
-RSpec::Core::RakeTask.new(:rcov) do |spec|
- spec.pattern = 'spec/**/*_spec.rb'
- spec.rcov = true
+task :rcov do
+ ENV['COVERAGE'] = 'yes'
+ Rake::Task["spec"].execute
end
task :default => :spec
require 'rdoc/task'