Permalink
Browse files

Pass -Ilib,spec to rcov.

- Closes #229.
  • Loading branch information...
1 parent 1012613 commit a54348115ff3d04c485dd3cb55722553f48d4bce @dchelimsky dchelimsky committed Nov 17, 2010
Showing with 2 additions and 3 deletions.
  1. +1 −1 lib/rspec/core/rake_task.rb
  2. +1 −2 spec/rspec/core/rake_task_spec.rb
@@ -161,7 +161,7 @@ def spec_command
cmd_parts << "bundle exec" if gemfile? unless skip_bundler
cmd_parts << runner
if rcov
- cmd_parts << ["-Ispec", "-Ilib", rcov_opts]
+ cmd_parts << ["-Ispec,lib", rcov_opts]
else
cmd_parts << rspec_opts
end
@@ -100,8 +100,7 @@ def spec_command
it "ensures that -Ispec and -Ilib are in the resulting command" do
task.rcov = true
task.rcov_opts = '--exclude "mocks"'
- spec_command.should =~ /rcov.*-Ispec/
- spec_command.should =~ /rcov.*-Ilib/
+ spec_command.should =~ /rcov.*-Ispec,lib/
end
end
end

0 comments on commit a543481

Please sign in to comment.