We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0722379 commit a9b9760Copy full SHA for a9b9760
lib/rspec/core/formatters.rb
@@ -138,13 +138,7 @@ def add(formatter_to_use, *paths)
138
formatter = RSpec::LegacyFormatters.load_formatter formatter_class, *args
139
@reporter.register_listener formatter, *formatter.notifications
140
else
141
- line = ::RSpec::CallerFilter.first_non_rspec_line
142
- if line
143
- call_site = "Formatter added at: #{line}"
144
- else
145
- call_site = "The formatter was added via command line flag or your "\
146
- "`.rspec` file."
147
- end
+ call_site = "Formatter added at: #{::RSpec::CallerFilter.first_non_rspec_line}"
148
149
RSpec.warn_deprecation <<-WARNING.gsub(/\s*\|/, ' ')
150
|The #{formatter_class} formatter uses the deprecated formatter
0 commit comments