Skip to content

format_option.feature refers to a syntax that isn't actually supported #704

jfirebaugh opened this Issue Oct 8, 2012 · 2 comments

3 participants


It refers to a formatter:filename syntax that doesn't actually work:

$ rspec spec --format documentation:rspec.output.txt
/Users/john/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:482:in `add_formatter': Formatter 'documentation:rspec.output.txt' unknown - maybe you meant 'documentation' or 'progress'?. (ArgumentError)
    from /Users/john/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.11.1/lib/rspec/core/configuration_options.rb:23:in `block in configure'
    from /Users/john/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.11.1/lib/rspec/core/configuration_options.rb:23:in `each'
    from /Users/john/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.11.1/lib/rspec/core/configuration_options.rb:23:in `configure'
    from /Users/john/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:21:in `run'
    from /Users/john/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'
    from /Users/john/.rvm/gems/ruby-1.9.3-p194/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `block in autorun'

I think this is meant to refer to the --out option instead.

vanstee commented Oct 9, 2012

It looks like --format documentation:<output> was never expected. I vote for just switching it to a --out.

@alindeman alindeman pushed a commit that closed this issue Oct 9, 2012
@vanstee vanstee Fix example of --format with --out
Seperating format and output file with a colon was never supported and
was probably added by accident. The output filename was also updated to
be consistent with later examples. Fixes #704
@alindeman alindeman closed this in 5561e17 Oct 9, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.