Permalink
Browse files

Ensure rcov includes rubygems and rcov first. 1.8 only

Use this workaround: rspec/rspec-core#370 (comment)
  • Loading branch information...
1 parent 71a1ab2 commit 947c256f5ac55b7053ce78503d0628e00a2b5d5e @msavy msavy committed Feb 22, 2012
Showing with 5 additions and 1 deletion.
  1. +1 −0 Manifest
  2. +2 −1 Rakefile
  3. +2 −0 spec/rcov_helper.rb
View
@@ -119,6 +119,7 @@ spec/plugins/platform/ec2/ec2-plugin-spec.rb
spec/plugins/platform/virtualbox/virtualbox-plugin-spec.rb
spec/plugins/platform/virtualpc/virtualpc-plugin-spec.rb
spec/plugins/platform/vmware/vmware-plugin-spec.rb
+spec/rcov_helper.rb
spec/rspec-plugin-helper.rb
spec/spec_helper.rb
spec/util/concurrent/get-set-spec.rb
View
@@ -56,7 +56,8 @@ end
def coverage18(t)
require 'rcov'
t.rcov = true
- t.rcov_opts = ['--exclude', 'spec,teamcity/*,/usr/lib/ruby/,.gem/ruby,/boxgrinder-core/,/gems/']
+ rcov_helper = File.expand_path(File.join(File.dirname(__FILE__), 'spec/rcov_helper.rb'))
+ t.rcov_opts = ["-Ispec:lib #{rcov_helper}", '--exclude', 'spec,teamcity/*,/usr/lib/ruby/,.gem/ruby,/boxgrinder-build/,/gems/']
end
RSpec::Core::RakeTask.new('spec:coverage') do |t|
View
@@ -0,0 +1,2 @@
+require 'rubygems'
+require 'rspec'

0 comments on commit 947c256

Please sign in to comment.