Method: Awspec::Generator::Spec::CloudwatchEvent#event_spec_template
- Defined in:
- lib/awspec/generator/spec/cloudwatch_event.rb
#event_spec_template ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/awspec/generator/spec/cloudwatch_event.rb', line 11 def event_spec_template template = <<-'EOF' <% events.each do |event| %> describe cloudwatch_event('<%= event.name %>') do it { should exist } <%- if event.state == 'ENABLED' -%> it { should be_enable } <% end -%> it { should be_scheduled('<%= event.schedule_expression %>') } end <% end %> EOF template end |