Module: Spec::Runner::OptionsExtensions

Defined in:
lib/spec/runner/options_extensions.rb

Constant Summary collapse

STORY_FORMATTERS =
{
  'plain' => ['spec/runner/formatter/story/plain_text_formatter',   'Formatter::Story::PlainTextFormatter'],
  'p' => ['spec/runner/formatter/story/plain_text_formatter',   'Formatter::Story::PlainTextFormatter'],
  'html' => ['spec/runner/formatter/story/html_formatter',         'Formatter::Story::HtmlFormatter'],
  'h' => ['spec/runner/formatter/story/html_formatter',         'Formatter::Story::HtmlFormatter'],
  'progress' => ['spec/runner/formatter/story/progress_bar_formatter', 'Formatter::Story::ProgressBarFormatter'],
  'r' => ['spec/runner/formatter/story/progress_bar_formatter', 'Formatter::Story::ProgressBarFormatter']
}

Instance Method Summary collapse

Instance Method Details

#story_formattersObject



16
17
18
19
# File 'lib/spec/runner/options_extensions.rb', line 16

def story_formatters
  @format_options ||= [['plain', @output_stream]]
  @formatters ||= load_formatters(@format_options, STORY_FORMATTERS)
end