Skip to content

Commit

Permalink
Improve deprecation warning message.
Browse files Browse the repository at this point in the history
rspec-mocks issues a similar warning so it's useful
to clarify that this is from rspec-expectations.
  • Loading branch information
myronmarston committed Nov 7, 2013
1 parent 3e12ec5 commit 34f93b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec/expectations/syntax.rb
Expand Up @@ -50,7 +50,7 @@ def self.warn_about_should!
def self.warn_about_should_unless_configured(method_name)
if @warn_about_should
RSpec.deprecate(
"Using `#{method_name}` from the old `:should` syntax without explicitly enabling the syntax",
"Using `#{method_name}` from rspec-expectations' old `:should` syntax without explicitly enabling the syntax",
:replacement => "the new `:expect` syntax or explicitly enable `:should`"
)

Expand Down

0 comments on commit 34f93b9

Please sign in to comment.