Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 5d8331d

Browse files
authored
Merge pull request #2798 from rspec/fix-deprecation-expectation
Fix deprecation expectation
2 parents a9c7b9c + 2669cfe commit 5d8331d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/rspec/core/formatters_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ module RSpec::Core::Formatters
8383
end
8484

8585
it "issues a deprecation" do
86-
expect_warn_deprecation_with_call_site(__FILE__, __LINE__ + 2,
87-
/The #{formatter_class} formatter uses the deprecated formatter interface/)
86+
expect_warn_deprecation(
87+
/The #{formatter_class} formatter uses the deprecated formatter interface.+#{__FILE__}:#{__LINE__ + 1}/)
8888
loader.add formatter_class, output
8989
end
9090
end

0 commit comments

Comments
 (0)