Sha256: 59a078cd8136118616d98c878796cd619c91deb56f8b3dbcd4bddf417d0c20aa

Contents?: true

Size: 227 Bytes

Versions: 58

Compression:

Stored size: 227 Bytes

Contents

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

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
awspec-0.25.3 lib/awspec/matcher/belong_to_vpc.rb
awspec-0.25.2 lib/awspec/matcher/belong_to_vpc.rb
awspec-0.25.1 lib/awspec/matcher/belong_to_vpc.rb
awspec-0.25.0 lib/awspec/matcher/belong_to_vpc.rb
awspec-0.24.2 lib/awspec/matcher/belong_to_vpc.rb
awspec-0.24.1 lib/awspec/matcher/belong_to_vpc.rb
awspec-0.24.0 lib/awspec/matcher/belong_to_vpc.rb
awspec-0.23.0 lib/awspec/matcher/belong_to_vpc.rb
awspec-0.22.1 lib/awspec/matcher/belong_to_vpc.rb
awspec-0.22.0 lib/awspec/matcher/belong_to_vpc.rb
awspec-0.21.6 lib/awspec/matcher/belong_to_vpc.rb
awspec-0.21.5 lib/awspec/matcher/belong_to_vpc.rb
awspec-0.21.4 lib/awspec/matcher/belong_to_vpc.rb
awspec-0.21.3 lib/awspec/matcher/belong_to_vpc.rb
awspec-0.21.2 lib/awspec/matcher/belong_to_vpc.rb
awspec-0.21.1 lib/awspec/matcher/belong_to_vpc.rb
awspec-0.21.0 lib/awspec/matcher/belong_to_vpc.rb
awspec-0.20.2 lib/awspec/matcher/belong_to_vpc.rb
awspec-0.20.1 lib/awspec/matcher/belong_to_vpc.rb
awspec-0.20.0 lib/awspec/matcher/belong_to_vpc.rb