Skip to content

Commit

Permalink
Rename option for FailureList formatter to "failures" (#2625)
Browse files Browse the repository at this point in the history
Rename option for FailureList formatter to "failures"
  • Loading branch information
benoittgt committed May 16, 2019
2 parents 4b92e78 + 63179c7 commit b4af5c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/rspec/core/formatters.rb
Original file line number Diff line number Diff line change
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 lib/rspec/core/option_parser.rb
Original file line number Diff line number Diff line change
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
2 changes: 1 addition & 1 deletion spec/rspec/core/formatters/failure_list_formatter_spec.rb
Original file line number Diff line number Diff line change
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 b4af5c7

Please sign in to comment.