~gandelman-a/ubuntu/precise/facter/merge922788

« back to all changes in this revision

Viewing changes to Rakefile

  • Committer: Package Import Robot
  • Author(s): Adam Gandelman
  • Date: 2011-10-18 10:32:42 UTC
  • mfrom: (1.3.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: package-import@ubuntu.com-20111018103242-ag8i8vejfp8v7b1b
Tags: upstream-1.6.1
ImportĀ upstreamĀ versionĀ 1.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
rescue LoadError
12
12
end
13
13
 
14
 
Dir['tasks/**/*.rake'].each { |t| load t } 
 
14
Dir['tasks/**/*.rake'].each { |t| load t }
15
15
 
16
16
require 'rake'
17
17
require 'rake/packagetask'
64
64
 
65
65
RSpec::Core::RakeTask.new do |t|
66
66
    t.pattern ='spec/{unit,integration}/**/*_spec.rb'
67
 
    t.fail_on_error = false
 
67
    t.fail_on_error = true
68
68
end
69
69
 
70
70
RSpec::Core::RakeTask.new('spec:rcov') do |t|
71
71
    t.pattern ='spec/{unit,integration}/**/*_spec.rb'
72
 
    t.fail_on_error = false
 
72
    t.fail_on_error = true
73
73
    if defined?(Rcov)
74
74
        t.rcov = true
75
75
        t.rcov_opts = ['--exclude', 'spec/*,test/*,results/*,/usr/lib/*,/usr/local/lib/*,gems/*']