Sha256: 15f72d347d7c8ee0f58f0b3703c45c185adc963bdb3576eff60a8f57430fb473

Contents?: true

Size: 294 Bytes

Versions: 13

Compression:

Stored size: 294 Bytes

Contents

# frozen_string_literal: true

RSpec::Matchers.define :belong_to_alb do |alb_arn|
  match do |type|
    return true if type.load_balancer_arns.include?(alb_arn)

    ret = type.find_alb(alb_arn)
    return false unless ret

    type.load_balancer_arns.include?(ret.load_balancer_arn)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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