Rakefile in facter-1.6.0 vs Rakefile in facter-1.6.1

- old
+ new

@@ -9,11 +9,11 @@ begin require 'rcov' rescue LoadError end -Dir['tasks/**/*.rake'].each { |t| load t } +Dir['tasks/**/*.rake'].each { |t| load t } require 'rake' require 'rake/packagetask' require 'rake/gempackagetask' @@ -62,15 +62,15 @@ sh %{rake -T} end RSpec::Core::RakeTask.new do |t| t.pattern ='spec/{unit,integration}/**/*_spec.rb' - t.fail_on_error = false + t.fail_on_error = true end RSpec::Core::RakeTask.new('spec:rcov') do |t| t.pattern ='spec/{unit,integration}/**/*_spec.rb' - t.fail_on_error = false + t.fail_on_error = true if defined?(Rcov) t.rcov = true t.rcov_opts = ['--exclude', 'spec/*,test/*,results/*,/usr/lib/*,/usr/local/lib/*,gems/*'] end end