Sha256: 5aacb2f2fd49403297128ca319519debab153af081185cc02e9176a42656b661

Contents?: true

Size: 422 Bytes

Versions: 20

Compression:

Stored size: 422 Bytes

Contents

RSpec::Matchers.define :be_denied do |port|
  match do |resource|
    resource.denied?(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

20 entries across 20 versions & 1 rubygems

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