Sha256: 83567d8b751022e8c7203116d72f1d4487b7d380d856794161ff4e8708762a51

Contents?: true

Size: 310 Bytes

Versions: 55

Compression:

Stored size: 310 Bytes

Contents

RSpec::Matchers.define :have_rule do |rule_id|
  match do |web_acl|
    web_acl.has_rule?(rule_id, @priority, @action)
  end

  chain :priority do |priority|
    @priority = priority
  end

  chain :order do |priority|
    @priority = priority
  end

  chain :action do |action|
    @action = action
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
awspec-0.63.1 lib/awspec/matcher/have_rule.rb
awspec-0.63.0 lib/awspec/matcher/have_rule.rb
awspec-0.62.1 lib/awspec/matcher/have_rule.rb
awspec-0.62.0 lib/awspec/matcher/have_rule.rb
awspec-0.61.1 lib/awspec/matcher/have_rule.rb
awspec-0.61.0 lib/awspec/matcher/have_rule.rb
awspec-0.60.1 lib/awspec/matcher/have_rule.rb
awspec-0.60.0 lib/awspec/matcher/have_rule.rb
awspec-0.59.0 lib/awspec/matcher/have_rule.rb
awspec-0.58.0 lib/awspec/matcher/have_rule.rb
awspec-0.57.1 lib/awspec/matcher/have_rule.rb
awspec-0.57.0 lib/awspec/matcher/have_rule.rb
awspec-0.56.1 lib/awspec/matcher/have_rule.rb
awspec-0.56.0 lib/awspec/matcher/have_rule.rb
awspec-0.55.0 lib/awspec/matcher/have_rule.rb