Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Pass -Ilib:spec to rcov.

- Closes #229 (again).
  • Loading branch information...
commit 18d58a67b6d7b4d2900757c15e20744a907b00ec 1 parent 212d388
@dchelimsky dchelimsky authored
View
2  lib/rspec/core/rake_task.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,lib", rcov_opts]
+ cmd_parts << ["-Ispec:lib", rcov_opts]
else
cmd_parts << rspec_opts
end
View
4 spec/rspec/core/rake_task_spec.rb
@@ -97,10 +97,10 @@ def spec_command
spec_command.should =~ /rcov.*--exclude "mocks"/
end
- it "ensures that -Ispec and -Ilib are in the resulting command" do
+ it "ensures that -Ispec:lib is in the resulting command" do
task.rcov = true
task.rcov_opts = '--exclude "mocks"'
- spec_command.should =~ /rcov.*-Ispec,lib/
+ spec_command.should =~ /rcov.*-Ispec:lib/
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.