spec/option_parser_spec.rb in launch-agent-0.6.1 vs spec/option_parser_spec.rb in launch-agent-0.7.0

- old
+ new

@@ -21,11 +21,11 @@ end describe 'empty argv' do let(:opts) do @opts.merge( - :daemon => true) + '--daemon' => true) end it 'should raise if argv is empty' do lambda { CLI::OptionParser.new(opts, []).agent @@ -34,12 +34,12 @@ end describe 'empty env' do let(:opts) do @opts.merge( - :env => nil, - :daemon => true) + '--env' => nil, + '--daemon' => true) end it_should_behave_like 'valid agent' end @@ -56,11 +56,11 @@ end describe 'daemon' do let(:opts) do @opts.merge( - :daemon => true) + '--daemon' => true) end it_should_behave_like 'valid agent' it 'should parse daemon option' do @@ -75,12 +75,12 @@ end describe 'wdir' do let(:opts) do @opts.merge( - :daemon => true, - :wdir => '/foo/bar') + '--daemon' => true, + '--wdir' => '/foo/bar') end it_should_behave_like 'valid agent' it 'should parse wdir option' do @@ -92,12 +92,12 @@ end describe 'env' do let(:opts) do @opts.merge( - :daemon => true, - :env => 'FOO=BAR,BAR=BAZ') + '--daemon' => true, + '--env' => 'FOO=BAR,BAR=BAZ') end it_should_behave_like 'valid agent' it 'should parse env option' do @@ -109,10 +109,10 @@ end describe 'interval' do let(:opts) do @opts.merge( - :interval => "120") + '--interval' => "120") end it_should_behave_like 'valid agent' it 'should parse env option' do