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