Skip to content

Commit

Permalink
Improve doc string.
Browse files Browse the repository at this point in the history
"local instance" didn't really give me the right
sense for what this was testing.
  • Loading branch information
myronmarston committed Aug 21, 2013
1 parent a8b330b commit 6df516a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/rspec/mocks/any_instance_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ class RSpec::SampleRspecTestClass;end
expect(obj.existing_method).to eq(:existing_method_return_value)
end

it "does not remove any stubs on the local instance" do
it "does not remove any stubs set directly on an instance" do
klass.any_instance.stub(:existing_method).and_return(:any_instance_value)
obj = klass.new
obj.stub(:existing_method).and_return(:local_method)
Expand Down

0 comments on commit 6df516a

Please sign in to comment.