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.74.1 lib/awspec/matcher/have_rule.rb
awspec-0.74.0 lib/awspec/matcher/have_rule.rb
awspec-0.73.2 lib/awspec/matcher/have_rule.rb
awspec-0.73.1 lib/awspec/matcher/have_rule.rb
awspec-0.73.0 lib/awspec/matcher/have_rule.rb
awspec-0.72.0 lib/awspec/matcher/have_rule.rb
awspec-0.71.0 lib/awspec/matcher/have_rule.rb
awspec-0.70.0 lib/awspec/matcher/have_rule.rb
awspec-0.69.1 lib/awspec/matcher/have_rule.rb
awspec-0.69.0 lib/awspec/matcher/have_rule.rb
awspec-0.68.0 lib/awspec/matcher/have_rule.rb
awspec-0.67.1 lib/awspec/matcher/have_rule.rb
awspec-0.67.0 lib/awspec/matcher/have_rule.rb
awspec-0.66.2 lib/awspec/matcher/have_rule.rb
awspec-0.66.1 lib/awspec/matcher/have_rule.rb
awspec-0.66.0 lib/awspec/matcher/have_rule.rb
awspec-0.65.2 lib/awspec/matcher/have_rule.rb
awspec-0.65.1 lib/awspec/matcher/have_rule.rb
awspec-0.65.0 lib/awspec/matcher/have_rule.rb
awspec-0.64.0 lib/awspec/matcher/have_rule.rb