spec/cucumber/cli/options_spec.rb in cucumber-0.8.6 vs spec/cucumber/cli/options_spec.rb in cucumber-0.8.7

- old
+ new

@@ -1,8 +1,7 @@ -require 'spec_helper' +require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') require 'yaml' -require 'cucumber/cli/options' module Cucumber module Cli describe Options do @@ -110,17 +109,10 @@ it "stores the provided exclusions as regular expressions" do after_parsing('-e foo --exclude bar') { options[:excludes].should == [/foo/,/bar/] } end end - context '-l LINES or --lines LINES' do - it "adds line numbers to args" do - options.parse!(%w{-l24 FILE}) - options.instance_variable_get(:@args).should == ['FILE:24'] - end - end - context '-p PROFILE or --profile PROFILE' do it "notifies the user that an individual profile is being used" do given_cucumber_yml_defined_as({'foo' => [1,2,3]}) options.parse!(%w{--profile foo}) @@ -330,28 +322,9 @@ end end - describe "dry-run" do - it "should have the default value for snippets" do - given_cucumber_yml_defined_as({'foo' => %w[--dry-run]}) - options.parse!(%w{--dry-run}) - options[:snippets].should == true - end - - it "should set snippets to false when no-snippets provided after dry-run" do - given_cucumber_yml_defined_as({'foo' => %w[--dry-run --no-snippets]}) - options.parse!(%w{--dry-run --no-snippets}) - options[:snippets].should == false - end - - it "should set snippets to false when no-snippets provided before dry-run" do - given_cucumber_yml_defined_as({'foo' => %w[--no-snippet --dry-run]}) - options.parse!(%w{--no-snippets --dry-run}) - options[:snippets].should == false - end - end end end end