Class: RSpec::Core::Formatters::Loader
- Inherits:
-
Object
- Object
- RSpec::Core::Formatters::Loader
- Defined in:
- lib/rspec/core/formatters_ext.rb
Instance Method Summary collapse
Instance Method Details
#duplicate_formatter_exists?(new_formatter) ⇒ Boolean
15 16 17 18 19 20 21 |
# File 'lib/rspec/core/formatters_ext.rb', line 15 def duplicate_formatter_exists?(new_formatter) @formatters.any? do |formatter| formatter.class == new_formatter.class && (formatter.output == new_formatter.output || formatter.class == RSpec::MultiprocessRunner::ReportingFormatter) end end |