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

Fix deprecation expectation #2798

Merged
merged 1 commit into from
Dec 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 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