Skip to content

Commit

Permalink
correct typo
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Jul 21, 2015
1 parent a5df57a commit 13a8463
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rspec/mocks/syntax.rb
Expand Up @@ -48,7 +48,7 @@ def stub(message_or_hash, opts={}, &block)
end

def unstub(message)
::RSpec::Mocks::Syntax.warn_unless_should_configured(__method__, "`allow(...).to_receive(...).and_call_original` or explicitly enable `:should`")
::RSpec::Mocks::Syntax.warn_unless_should_configured(__method__, "`allow(...).to receive(...).and_call_original` or explicitly enable `:should`")
::RSpec::Mocks.space.proxy_for(self).remove_stub(message)
end

Expand Down
2 changes: 1 addition & 1 deletion spec/rspec/mocks/should_syntax_spec.rb
Expand Up @@ -500,7 +500,7 @@ def use_rspec_mocks

it "warns about unstubbing once, regardless of how many times it is called" do
expect(RSpec).to receive(:deprecate).with(/Using.*without explicitly enabling/,
{:replacement => "`allow(...).to_receive(...).and_call_original` or explicitly enable `:should`"})
{:replacement => "`allow(...).to receive(...).and_call_original` or explicitly enable `:should`"})
o = Object.new
o2 = Object.new

Expand Down

0 comments on commit 13a8463

Please sign in to comment.