Sha256: 6bae51d22929c2a641dc51e11f36fc1720ac8f97f8278cbfe0ce3f5f9689438a

Contents?: true

Size: 316 Bytes

Versions: 13

Compression:

Stored size: 316 Bytes

Contents

# frozen_string_literal: true

RSpec::Matchers.define :be_connected_to_vpc do |vpc_id|
  match do |vpc|
    vpc.connected_to_vpc?(vpc_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

13 entries across 13 versions & 1 rubygems

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