spec/rallycat/cli_spec.rb in rallycat-0.4.0 vs spec/rallycat/cli_spec.rb in rallycat-0.4.1

- old
+ new

@@ -25,12 +25,12 @@ it 'parses global options' do sout = StringIO.new cli = Rallycat::CLI.new %w{ -u foo.bar@rallycat.com -p password help }, sout cli.options.should == { - username: 'foo.bar@rallycat.com', - password: 'password' + :username => 'foo.bar@rallycat.com', + :password => 'password' } end it 'raises if global options do not appear before the command' do sout = StringIO.new @@ -43,23 +43,23 @@ it 'parses all options' do sout = StringIO.new cli = Rallycat::CLI.new %w{ -u foo.bar@rallycat.com -p password update -p TA6666 -b }, sout cli.options.should == { - username: 'foo.bar@rallycat.com', - password: 'password', - in_progress: true, - blocked: true + :username => 'foo.bar@rallycat.com', + :password => 'password', + :in_progress => true, + :blocked => true } end it 'parses command options (no global options)' do sout = StringIO.new cli = Rallycat::CLI.new %w{ update TA6666 -pb }, sout cli.options.should == { - in_progress: true, - blocked: true + :in_progress => true, + :blocked => true } end end