Sha256: 67f51ffd5b05c5110311164bcad98c173c976a02ebb373ad832e3995a3b6d6a6
Contents?: true
Size: 837 Bytes
Versions: 36
Compression:
Stored size: 837 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, @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 & 1 rubygems