Sha256: 003934dbfa3acac43998b72dce78879b89724f71b7ab5bb17727eafbce090d36

Contents?: true

Size: 416 Bytes

Versions: 191

Compression:

Stored size: 416 Bytes

Contents

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

191 entries across 191 versions & 4 rubygems

Version Path
awspec-0.87.0 lib/awspec/matcher/be_allowed.rb
awspec-0.86.0 lib/awspec/matcher/be_allowed.rb
cmonson_2ndwatch_awspec-0.85.4 lib/awspec/matcher/be_allowed.rb
awspec-0.85.3 lib/awspec/matcher/be_allowed.rb
cmonson_2ndwatch_awspec-0.85.3 lib/awspec/matcher/be_allowed.rb
awspec-0.85.2 lib/awspec/matcher/be_allowed.rb
awspec-0.85.1 lib/awspec/matcher/be_allowed.rb
awspec-0.85.0 lib/awspec/matcher/be_allowed.rb
awspec-0.84.1 lib/awspec/matcher/be_allowed.rb
awspec-0.84.0 lib/awspec/matcher/be_allowed.rb
awspec-0.83.0 lib/awspec/matcher/be_allowed.rb
awspec-0.82.3 lib/awspec/matcher/be_allowed.rb
awspec-0.82.2 lib/awspec/matcher/be_allowed.rb
awspec-0.82.1 lib/awspec/matcher/be_allowed.rb
awspec-0.82.0 lib/awspec/matcher/be_allowed.rb
awspec-0.81.1 lib/awspec/matcher/be_allowed.rb
awspec-0.81.0 lib/awspec/matcher/be_allowed.rb
awspec-0.80.1 lib/awspec/matcher/be_allowed.rb
awspec-0.80.0 lib/awspec/matcher/be_allowed.rb
awspec-0.79.2 lib/awspec/matcher/be_allowed.rb