Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ensure rcov includes rubygems and rcov first. 1.8 only

Use this workaround: rspec/rspec-core#370 (comment)
  • Loading branch information...
commit 947c256f5ac55b7053ce78503d0628e00a2b5d5e 1 parent 71a1ab2
@msavy msavy authored
Showing with 5 additions and 1 deletion.
  1. +1 −0  Manifest
  2. +2 −1  Rakefile
  3. +2 −0  spec/rcov_helper.rb
View
1  Manifest
@@ -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
3  Rakefile
@@ -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
2  spec/rcov_helper.rb
@@ -0,0 +1,2 @@
+require 'rubygems'
+require 'rspec'
Please sign in to comment.
Something went wrong with that request. Please try again.