spec/cli/attributes_spec.rb in simple_deploy-0.6.4 vs spec/cli/attributes_spec.rb in simple_deploy-0.6.5

- old
+ new

@@ -24,25 +24,25 @@ :name => 'my_stack'). and_return(@stack) end it 'should output the attributes' do - SimpleDeploy::CLI::Shared.should_receive(:valid_options?). - with(:provided => @options, - :required => [:environment, :name]) + subject.should_receive(:valid_options?). + with(:provided => @options, + :required => [:environment, :name]) Trollop.stub(:options).and_return(@options) - subject.should_receive(:puts).with("foo=bar") - subject.should_receive(:puts).with("baz=blah") + subject.should_receive(:puts).with('foo: bar') + subject.should_receive(:puts).with('baz: blah') subject.show end context 'with --as-command-args' do before do @options[:as_command_args] = true Trollop.stub(:options).and_return(@options) - SimpleDeploy::CLI::Shared.should_receive(:valid_options?). - with(:provided => @options, - :required => [:environment, :name]) + subject.should_receive(:valid_options?). + with(:provided => @options, + :required => [:environment, :name]) end it 'should output the attributes as command arguments' do subject.should_receive(:puts).with("-a baz=blah -a foo=bar") subject.show