Sha256: 5b64500086226331c7da3018fbd99ffa034fb22775bae955d4d1ce027f176d4c

Contents?: true

Size: 211 Bytes

Versions: 191

Compression:

Stored size: 211 Bytes

Contents

RSpec::Matchers.define :belong_to_vpc do |vpc_id|
  match do |type|
    return true if type.vpc_id == vpc_id
    ret = type.find_vpc(vpc_id)
    return false unless ret
    ret[:vpc_id] == type.vpc_id
  end
end

Version data entries

191 entries across 191 versions & 4 rubygems

Version Path
awspec-1.25.1 lib/awspec/matcher/belong_to_vpc.rb
awspec-1.25.0 lib/awspec/matcher/belong_to_vpc.rb
awspec-1.24.4 lib/awspec/matcher/belong_to_vpc.rb
awspec-1.24.3 lib/awspec/matcher/belong_to_vpc.rb
awspec-1.24.2 lib/awspec/matcher/belong_to_vpc.rb
awspec-1.24.1 lib/awspec/matcher/belong_to_vpc.rb
awspec-1.24.0 lib/awspec/matcher/belong_to_vpc.rb
awspec-1.23.0 lib/awspec/matcher/belong_to_vpc.rb
awspec-1.22.1 lib/awspec/matcher/belong_to_vpc.rb
awspec-1.22.0 lib/awspec/matcher/belong_to_vpc.rb
awspec-1.21.1 lib/awspec/matcher/belong_to_vpc.rb
awspec-1.21.0 lib/awspec/matcher/belong_to_vpc.rb
awspec-1.20.0 lib/awspec/matcher/belong_to_vpc.rb
awspec-1.19.2 lib/awspec/matcher/belong_to_vpc.rb
awspec-1.19.1 lib/awspec/matcher/belong_to_vpc.rb
awspec-1.19.0 lib/awspec/matcher/belong_to_vpc.rb
cthiesfork-awspec-1.2.4 lib/awspec/matcher/belong_to_vpc.rb
awspec-api_gateway_extended-1.2.4 lib/awspec/matcher/belong_to_vpc.rb
awspec-api_gateway_extended-1.2.3 lib/awspec/matcher/belong_to_vpc.rb
awspec-1.18.6 lib/awspec/matcher/belong_to_vpc.rb