Skip to content

Commit

Permalink
[core] Merge pull request rspec/rspec-core#2798 from rspec/fix-deprec…
Browse files Browse the repository at this point in the history
…ation-expectation

Fix deprecation expectation

---
This commit was imported from rspec/rspec-core@525f480.
  • Loading branch information
JonRowe committed Dec 27, 2020
1 parent 77a198b commit eab5b75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rspec-core/spec/rspec/core/formatters_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ module RSpec::Core::Formatters
end

it "issues a deprecation" do
expect_warn_deprecation_with_call_site(__FILE__, __LINE__ + 2,
/The #{formatter_class} formatter uses the deprecated formatter interface/)
expect_warn_deprecation(
/The #{formatter_class} formatter uses the deprecated formatter interface.+#{__FILE__}:#{__LINE__ + 1}/)
loader.add formatter_class, output
end
end
Expand Down

0 comments on commit eab5b75

Please sign in to comment.