spec/cli/clone_spec.rb in simple_deploy-0.6.4 vs spec/cli/clone_spec.rb in simple_deploy-0.6.5
- old
+ new
@@ -157,13 +157,13 @@
:name => 'new_stack').
and_return(@new_stack)
end
it 'should create the new stack using the filtered, merged and added attributes' do
- SimpleDeploy::CLI::Shared.should_receive(:valid_options?).
- with(:provided => @options,
- :required => [:environment, :source_name, :new_name])
+ subject.should_receive(:valid_options?).
+ with(:provided => @options,
+ :required => [:environment, :source_name, :new_name])
Trollop.stub(:options).and_return(@options)
@new_stack.should_receive(:create) do |options|
options[:attributes].should == [{ 'AmiId' => 'ami-7b6a4e3e' },
{ 'AppEnv' => 'pod-2-cd-1' },
@@ -179,12 +179,12 @@
end
it 'should create the new stack using a new template' do
@options[:template] = 'brand_new_template.json'
- SimpleDeploy::CLI::Shared.should_receive(:valid_options?).
- with(:provided => @options,
- :required => [:environment, :source_name, :new_name])
+ subject.should_receive(:valid_options?).
+ with(:provided => @options,
+ :required => [:environment, :source_name, :new_name])
Trollop.stub(:options).and_return(@options)
@new_stack.should_receive(:create) do |options|
options[:attributes].should == [{ 'AmiId' => 'ami-7b6a4e3e' },
{ 'AppEnv' => 'pod-2-cd-1' },