Method: Awspec::Generator::Spec::NetworkAcl#generate_subnet_specs
- Defined in:
- lib/awspec/generator/spec/network_acl.rb
#generate_subnet_specs(acl) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/awspec/generator/spec/network_acl.rb', line 29 def generate_subnet_specs(acl) specs = [] acl.associations.each do |a| subnet = find_subnet(a.subnet_id) if subnet.tag_name spec = "it { should have_subnet('" + subnet.tag_name + "') }" else spec = "it { should have_subnet('" + subnet.subnet_id + "') }" end specs.push(spec) end specs end |