diff options
| author | Daniel Pittman <daniel@puppetlabs.com> | 2011-01-31 13:21:22 -0800 |
|---|---|---|
| committer | Daniel Pittman <daniel@rimspace.net> | 2011-01-31 13:21:22 -0800 |
| commit | fa06a388cd3fd91b62d4e65bbe4ff74bcfe46ad0 (patch) | |
| tree | 04369523bed9f9ce292ada8503e4183f0da84d31 /Rakefile | |
| parent | e717fed872f68c52fc0193bab2095a12f03433ac (diff) | |
| parent | d9b8f2ad68626b8655d98a8d9037283f671f86bb (diff) | |
| download | facter-fa06a388cd3fd91b62d4e65bbe4ff74bcfe46ad0.tar.gz facter-fa06a388cd3fd91b62d4e65bbe4ff74bcfe46ad0.tar.xz facter-fa06a388cd3fd91b62d4e65bbe4ff74bcfe46ad0.zip | |
Merge commit 'd9b8f2a'
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -4,8 +4,8 @@ $: << File.expand_path('lib') $LOAD_PATH << File.join(File.dirname(__FILE__), 'tasks') require 'rubygems' -require 'spec' -require 'spec/rake/spectask' +require 'rspec' +require 'rspec/core/rake_task' begin require 'rcov' rescue LoadError @@ -62,12 +62,14 @@ task :default do sh %{rake -T} end -Spec::Rake::SpecTask.new(:spec) do |t| - t.spec_files = FileList['spec/**/*.rb'] +RSpec::Core::RakeTask.new do |t| + t.pattern ='spec/{unit,integration}/**/*_spec.rb' + t.fail_on_error = false end -Spec::Rake::SpecTask.new('spec:rcov') do |t| - t.spec_files = FileList['spec/**/*.rb'] +RSpec::Core::RakeTask.new('spec:rcov') do |t| + t.pattern ='spec/{unit,integration}/**/*_spec.rb' + t.fail_on_error = false if defined?(Rcov) t.rcov = true t.rcov_opts = ['--exclude', 'spec/*,test/*,results/*,/usr/lib/*,/usr/local/lib/*,gems/*'] |
