spec/kumogata_export_spec.rb in kumogata-0.5.2 vs spec/kumogata_export_spec.rb in kumogata-0.5.3

- old
+ new

@@ -24,19 +24,19 @@ } EOS template = run_client(:export, :arguments => ['MyStack']) do |client, cf| stack = make_double('stack') do |obj| - obj.should_receive(:status) { 'CREATE_COMPLETE' } - obj.should_receive(:template) { json } + expect(obj).to receive(:status) { 'CREATE_COMPLETE' } + expect(obj).to receive(:template) { json } end stacks = make_double('stacks') do |obj| - obj.should_receive(:[]).with('MyStack') { stack } + expect(obj).to receive(:[]).with('MyStack') { stack } end - cf.should_receive(:stacks) { stacks } + expect(cf).to receive(:stacks) { stacks } end expect(template).to eq((<<-EOS).chomp) Resources do myEC2Instance do @@ -82,18 +82,18 @@ } EOS template = run_client(:export, :arguments => ['MyStack'], :options => {:format => :json}) do |client, cf| stack = make_double('stack') do |obj| - obj.should_receive(:status) { 'CREATE_COMPLETE' } - obj.should_receive(:template) { json } + expect(obj).to receive(:status) { 'CREATE_COMPLETE' } + expect(obj).to receive(:template) { json } end stacks = make_double('stacks') do |obj| - obj.should_receive(:[]).with('MyStack') { stack } + expect(obj).to receive(:[]).with('MyStack') { stack } end - cf.should_receive(:stacks) { stacks } + expect(cf).to receive(:stacks) { stacks } end expect(template).to eq((<<-EOS).chomp) { "Resources": {