Sha256: c73653895f225b12bcba50e12fdac24bd849a91a81e57c2ae1a5f88c6a67ef5f
Contents?: true
Size: 692 Bytes
Versions: 44
Compression:
Stored size: 692 Bytes
Contents
module Awspec::Generator module Spec class RedshiftClusterParameterGroup include Awspec::Helper::Finder def generate_by_parameter_group(parameter_group) @parameter_group = parameter_group res = select_all_redshift_cluster_parameters(@parameter_group) ERB.new(redshift_cluster_parameters_spec_template, nil, '-').result(binding).gsub(/^\n/, '') end def redshift_cluster_parameters_spec_template template = <<-'EOF' describe redshift_cluster_parameter_group('<%= @parameter_group %>') do <% res.each do |key, value| %> its('<%= key %>') { should eq '<%= value %>' } <% end %> end EOF template end end end end
Version data entries
44 entries across 44 versions & 3 rubygems