Sha256: 87b2d9f496d9cca3050a0ccac96319c774c836258c8012f95530bf66d7bc5708

Contents?: true

Size: 447 Bytes

Versions: 13

Compression:

Stored size: 447 Bytes

Contents

# frozen_string_literal: true

RSpec::Matchers.define :be_allowed do |port|
  match do |type|
    type.allowed?(port, @protocol, @cidr, @rule_number)
  end

  chain :protocol do |protocol|
    @protocol = protocol
  end

  chain :for do |cidr|
    @cidr = cidr
  end

  chain :target do |cidr|
    @cidr = cidr
  end

  chain :source do |cidr|
    @cidr = cidr
  end

  chain :rule_number do |rule_number|
    @rule_number = rule_number
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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