Permalink
Browse files

Add -Ilib to default rcov_opts

- Closes #203.
  • Loading branch information...
1 parent ea36814 commit 98e2f1950154ac935edd866a80f7b1b3753b1c89 @tianyicui tianyicui committed with dchelimsky Oct 27, 2010
Showing with 3 additions and 2 deletions.
  1. +1 −1 lib/rspec/core/rake_task.rb
  2. +2 −1 spec/rspec/core/rake_task_spec.rb
View
2 lib/rspec/core/rake_task.rb
@@ -136,7 +136,7 @@ def spec_command
cmd_parts << "bundle exec" if bundler
cmd_parts << runner
if rcov
- cmd_parts << ["-Ispec", rcov_opts]
+ cmd_parts << ["-Ispec", "-Ilib", rcov_opts]
else
cmd_parts << rspec_opts
end
View
3 spec/rspec/core/rake_task_spec.rb
@@ -77,10 +77,11 @@ def spec_command
spec_command.should =~ /rcov.*--exclude "mocks"/
end
- it "ensures that -Ispec is in the resulting command" do
+ 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/
end
end
end

0 comments on commit 98e2f19

Please sign in to comment.