spec/cucumber/cli/options_spec.rb in cucumber-0.10.0 vs spec/cucumber/cli/options_spec.rb in cucumber-0.10.1

- old
+ new

@@ -110,9 +110,16 @@ 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})