Sha256: f0f99e6bbbe3e66813b789c3f3dc33d954b6fb666f03e12eb029626f7e36b2bf

Contents?: true

Size: 372 Bytes

Versions: 12

Compression:

Stored size: 372 Bytes

Contents

# frozen_string_literal: true

RSpec::Matchers.define :have_vpc_peering_connection do |vpc_peering_connection_id|
  match do |vpc|
    vpc.has_vpc_peering_connection?(vpc_peering_connection_id, @accepter_or_requester)
  end

  chain :as_accepter do
    @accepter_or_requester = 'accepter'
  end

  chain :as_requester do
    @accepter_or_requester = 'requester'
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
awspec-1.30.0 lib/awspec/matcher/have_vpc_peering_connection.rb
awspec-1.29.3 lib/awspec/matcher/have_vpc_peering_connection.rb
awspec-1.29.2 lib/awspec/matcher/have_vpc_peering_connection.rb
awspec-1.29.1 lib/awspec/matcher/have_vpc_peering_connection.rb
awspec-1.29.0 lib/awspec/matcher/have_vpc_peering_connection.rb
awspec-1.28.2 lib/awspec/matcher/have_vpc_peering_connection.rb
awspec-1.28.1 lib/awspec/matcher/have_vpc_peering_connection.rb
awspec-1.28.0 lib/awspec/matcher/have_vpc_peering_connection.rb
awspec-1.27.1 lib/awspec/matcher/have_vpc_peering_connection.rb
awspec-1.27.0 lib/awspec/matcher/have_vpc_peering_connection.rb
awspec-1.26.0 lib/awspec/matcher/have_vpc_peering_connection.rb
awspec-1.25.2 lib/awspec/matcher/have_vpc_peering_connection.rb