Skip to content

Commit

Permalink
Merge branch 'master' of github.com:rspec/rspec-core
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Nov 18, 2010
2 parents 35c722e + 18d58a6 commit f293f9a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/rspec/core/rake_task.rb
Expand Up @@ -161,7 +161,7 @@ def spec_command
cmd_parts << "bundle exec" if gemfile? unless skip_bundler cmd_parts << "bundle exec" if gemfile? unless skip_bundler
cmd_parts << runner cmd_parts << runner
if rcov if rcov
cmd_parts << ["-Ispec", "-Ilib", rcov_opts] cmd_parts << ["-Ispec:lib", rcov_opts]
else else
cmd_parts << rspec_opts cmd_parts << rspec_opts
end end
Expand Down
7 changes: 4 additions & 3 deletions lib/rspec/core/subject.rb
Expand Up @@ -88,9 +88,10 @@ module ClassMethods
# onto the subject in an expression. # onto the subject in an expression.
# #
# describe Person do # describe Person do
# let(:person) do # subject do
# person = Person.new # Person.new.tap do |person|
# person.phone_numbers << "555-1212" # person.phone_numbers << "555-1212"
# end
# end # end
# #
# its("phone_numbers.first") { should == "555-1212" } # its("phone_numbers.first") { should == "555-1212" }
Expand Down
5 changes: 2 additions & 3 deletions spec/rspec/core/rake_task_spec.rb
Expand Up @@ -97,11 +97,10 @@ def spec_command
spec_command.should =~ /rcov.*--exclude "mocks"/ spec_command.should =~ /rcov.*--exclude "mocks"/
end 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 = true
task.rcov_opts = '--exclude "mocks"' task.rcov_opts = '--exclude "mocks"'
spec_command.should =~ /rcov.*-Ispec/ spec_command.should =~ /rcov.*-Ispec:lib/
spec_command.should =~ /rcov.*-Ilib/
end end
end end
end end
Expand Down

0 comments on commit f293f9a

Please sign in to comment.