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.83.0 lib/awspec/matcher/have_rule.rb
awspec-0.82.3 lib/awspec/matcher/have_rule.rb
awspec-0.82.2 lib/awspec/matcher/have_rule.rb
awspec-0.82.1 lib/awspec/matcher/have_rule.rb
awspec-0.82.0 lib/awspec/matcher/have_rule.rb
awspec-0.81.1 lib/awspec/matcher/have_rule.rb
awspec-0.81.0 lib/awspec/matcher/have_rule.rb
awspec-0.80.1 lib/awspec/matcher/have_rule.rb
awspec-0.80.0 lib/awspec/matcher/have_rule.rb
awspec-0.79.2 lib/awspec/matcher/have_rule.rb
awspec-0.79.1 lib/awspec/matcher/have_rule.rb
awspec-0.79.0 lib/awspec/matcher/have_rule.rb
awspec-0.78.1 lib/awspec/matcher/have_rule.rb
awspec-0.77.1 lib/awspec/matcher/have_rule.rb
awspec-0.77.0 lib/awspec/matcher/have_rule.rb
awspec-0.76.1 lib/awspec/matcher/have_rule.rb
awspec-0.76.0 lib/awspec/matcher/have_rule.rb
awspec-0.75.2 lib/awspec/matcher/have_rule.rb
awspec-0.75.1 lib/awspec/matcher/have_rule.rb
awspec-0.75.0 lib/awspec/matcher/have_rule.rb