Skip to content

Commit

Permalink
Ensure rcov includes rubygems and rcov first. 1.8 only
Browse files Browse the repository at this point in the history
Use this workaround: rspec/rspec-core#370 (comment)
  • Loading branch information
msavy committed Feb 22, 2012
1 parent 8852375 commit 54bd266
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Manifest
Expand Up @@ -30,6 +30,7 @@ spec/helpers/exec-helper-spec.rb
spec/helpers/log-helper-spec.rb
spec/models/appliance-config-spec.rb
spec/models/config-spec.rb
spec/rcov_helper.rb
spec/rspec/ls/one
spec/rspec/ls/two
spec/rspec/src/appliances/0.8.x.appl
Expand Down
3 changes: 2 additions & 1 deletion Rakefile
Expand Up @@ -39,7 +39,8 @@ end
def coverage18(t)
require 'rcov'
t.rcov = true
t.rcov_opts = ['--exclude', 'spec,teamcity/*,/usr/lib/ruby/,.gem/ruby,/boxgrinder-build/,/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|
Expand Down
2 changes: 2 additions & 0 deletions spec/rcov_helper.rb
@@ -0,0 +1,2 @@
require 'rubygems'
require 'rspec'

0 comments on commit 54bd266

Please sign in to comment.