Sha256: 8348593cb9b0c35b4eeef219c392cca3b79a283a362e6aa1dc9400957302afcc

Contents?: true

Size: 431 Bytes

Versions: 6

Compression:

Stored size: 431 Bytes

Contents

require "spec_helper"

module RSpec::Core
  describe OptionParser do
    before do
      RSpec.stub(:deprecate)
    end
    
    it "deprecates the --formatter option" do
      RSpec.should_receive(:deprecate)
      Parser.parse!(%w[--formatter doc])      
    end
    
    it "converts --formatter to --format" do
      options = Parser.parse!(%w[--formatter doc])
      options.should eq( {:formatter=>"doc"} )
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rspec-core-2.0.0.beta.17 spec/rspec/core/option_parser_spec.rb
rspec-core-2.0.0.beta.16 spec/rspec/core/option_parser_spec.rb
rspec-core-2.0.0.beta.15 spec/rspec/core/option_parser_spec.rb
rspec-core-2.0.0.beta.14 spec/rspec/core/option_parser_spec.rb
rspec-core-2.0.0.beta.13 spec/rspec/core/option_parser_spec.rb
rspec-core-2.0.0.beta.12 spec/rspec/core/option_parser_spec.rb