tasks/rspec.rake in postalmethods-1.1.0 vs tasks/rspec.rake in postalmethods-1.1.1

- old
+ new

@@ -17,5 +17,17 @@ desc "Run the specs under spec/models" Spec::Rake::SpecTask.new do |t| t.spec_opts = ['--options', "spec/spec.opts"] t.spec_files = FileList['spec/**/*_spec.rb'] end + +namespace :spec do + desc "Run all specs in spec directory with RCov (excluding plugin specs)" + Spec::Rake::SpecTask.new(:rcov) do |t| + t.spec_opts = ['--options', "\"spec/spec.opts\""] + t.spec_files = FileList['spec/**/*_spec.rb'] + t.rcov = true + t.rcov_opts = lambda do + IO.readlines("spec/rcov.opts").map {|l| l.chomp.split " "}.flatten + end + end +end \ No newline at end of file