Skip to content

Commit

Permalink
[core] Rename option for FailureList formatter to "failures" (rspec/r…
Browse files Browse the repository at this point in the history
…spec-core#2625)

Rename option for FailureList formatter to "failures"

---
This commit was imported from rspec/rspec-core@b4af5c7.
  • Loading branch information
benoittgt committed May 16, 2019
2 parents 5103e97 + 38ce60d commit aeac73a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rspec-core/lib/rspec/core/formatters.rb
Expand Up @@ -213,7 +213,7 @@ def built_in_formatter(key)
JsonFormatter
when 'bisect-drb'
BisectDRbFormatter
when 'f', 'failure_list'
when 'f', 'failures'
FailureListFormatter
end
end
Expand Down
2 changes: 1 addition & 1 deletion rspec-core/lib/rspec/core/option_parser.rb
Expand Up @@ -112,7 +112,7 @@ def parser(options)
' [d]ocumentation (group and example names)',
' [h]tml',
' [j]son',
' [f]ailure list (suitable for editors integration)',
' [f]ailures ("file:line:reason", suitable for editors integration)',
' custom formatter class name') do |o|
options[:formatters] ||= []
options[:formatters] << [o]
Expand Down
Expand Up @@ -5,7 +5,7 @@ module RSpec::Core::Formatters
include FormatterSupport

it 'produces the expected full output' do
output = run_example_specs_with_formatter('failure_list')
output = run_example_specs_with_formatter('failures')
expect(output).to eq(<<-EOS.gsub(/^\s+\|/, ''))
|./spec/rspec/core/resources/formatter_specs.rb:4:is marked as pending but passes
|./spec/rspec/core/resources/formatter_specs.rb:36:fails
Expand Down

0 comments on commit aeac73a

Please sign in to comment.