Rakefile in with_lock-0.1 vs Rakefile in with_lock-0.1.1
- old
+ new
@@ -1,9 +1,26 @@
require "bundler/gem_tasks"
+require 'simplecov'
require 'rspec/core/rake_task'
desc 'Run the specs'
RSpec::Core::RakeTask.new do |r|
r.verbose = false
end
-task :default => :spec
\ No newline at end of file
+#desc "Run all examples with RCov"
+#RSpec::Core::RakeTask.new('examples_with_rcov') do |t|
+# #t.spec_files = FileList['spec/**/*.rb']
+# t.rcov = true
+# #t.rcov_opts = ['--exclude', 'spec']
+#end
+#
+#begin
+# require 'spec/rake/verify_rcov'
+# RCov::VerifyTask.new(:verify_rcov => 'spec:rcov') do |t|
+# t.threshold = 100.0
+# t.index_html = 'coverage/index.html'
+# end
+#rescue LoadError => e
+#end
+
+task :default => :spec