diff --git a/spec/kitchen/driver/aws/instance_generator_spec.rb b/spec/kitchen/driver/aws/instance_generator_spec.rb index 5c9d6f71..cf309861 100644 --- a/spec/kitchen/driver/aws/instance_generator_spec.rb +++ b/spec/kitchen/driver/aws/instance_generator_spec.rb @@ -209,12 +209,14 @@ it "generates id from the provided tag" do allow(::Aws::EC2::Client).to receive(:new).and_return(ec2_stub) expect(ec2_stub).to receive(:describe_subnets).with( - filters: [ - { - name: "tag:foo", - values: ["bar"], - }, - ] + { + filters: [ + { + name: "tag:foo", + values: ["bar"], + }, + ] + } ).and_return(ec2_stub.describe_subnets) expect(generator.ec2_instance_data[:subnet_id]).to eq("s-123") end @@ -240,16 +242,18 @@ it "generates id from the provided tag" do allow(::Aws::EC2::Client).to receive(:new).and_return(ec2_stub) expect(ec2_stub).to receive(:describe_security_groups).with( - filters: [ - { - name: "tag:foo", - values: ["bar"], - }, - { - name: "vpc-id", - values: ["vpc-456"], - }, - ] + { + filters: [ + { + name: "tag:foo", + values: ["bar"], + }, + { + name: "vpc-id", + values: ["vpc-456"], + }, + ] + } ).and_return(ec2_stub.describe_security_groups) expect(generator.ec2_instance_data[:security_group_ids]).to eq(["sg-123"]) end @@ -287,16 +291,18 @@ it "generates id from the provided tag" do allow(::Aws::EC2::Client).to receive(:new).and_return(ec2_stub_whithout_security_group) expect(ec2_stub_whithout_security_group).to receive(:describe_security_groups).with( - filters: [ - { - name: "tag:foo", - values: ["bar"], - }, - { - name: "vpc-id", - values: ["vpc-456"], - }, - ] + { + filters: [ + { + name: "tag:foo", + values: ["bar"], + }, + { + name: "vpc-id", + values: ["vpc-456"], + }, + ] + } ).and_return(ec2_stub_whithout_security_group.describe_security_groups) expect { generator.ec2_instance_data }.to raise_error(