Sha256: 2021d26d377f8754a34a6d866d13d5913f52f5ee8e9837f0abeb43c2befd91ef
Contents?: true
Size: 946 Bytes
Versions: 36
Compression:
Stored size: 946 Bytes
Contents
RSpec::Matchers.define :have_rule do |rule_id| match do |type| return type.has_rule?(rule_id, @priority, @action) if type.instance_of?(Awspec::Type::WafWebAcl) return type.has_rule?(rule_id, @priority, @action) if type.instance_of?(Awspec::Type::WafregionalWebAcl) return type.has_rule?(rule_id, @priority, @conditions, @actions) if type.instance_of?(Awspec::Type::AlbListener) type.has_rule?(rule_id, @priority, @conditions, @actions) if type.instance_of?(Awspec::Type::NlbListener) end chain :priority do |priority| @priority = priority end chain :order do |priority| @priority = priority end chain :action do |action| @action = action end chain :conditions do |conditions| @conditions = conditions end chain :actions do |actions| @actions = actions end chain :if do |conditions| @conditions = conditions end chain :then do |actions| @actions = actions end end
Version data entries
36 entries across 36 versions & 3 rubygems