tasks/rspec.rake in rslt-1.1.8 vs tasks/rspec.rake in rslt-1.1.9
- old
+ new
@@ -1,13 +1,13 @@
require 'rspec/core/rake_task'
-if RUBY_VERSION =~ /^1\.8/
+begin
+ require 'rcov'
desc "Run all specs with rcov"
RSpec::Core::RakeTask.new(:spec) do |t|
t.rcov = true
t.rcov_opts = %w{--exclude osx\/objc,gems\/,spec\/,features\/ --failure-threshold 100}
end
-
-else
- desc "Run all specs"
+rescue LoadError
+ desc "Run all specs (without coverage tests)"
RSpec::Core::RakeTask.new(:spec)
end