Skip to content

Commit

Permalink
Make doc string more accurate.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Feb 23, 2015
1 parent 149293e commit 8e56f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/rspec/mocks/stub_spec.rb
Expand Up @@ -27,7 +27,7 @@ def existing_private_instance_method
@stub = Object.new
end

describe "using stub" do
describe "using `and_return`" do
it "returns declared value when message is received" do
allow(@instance).to receive(:msg).and_return(:return_value)
expect(@instance.msg).to equal(:return_value)
Expand Down

0 comments on commit 8e56f83

Please sign in to comment.