11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/awspec/generator/spec/lambda.rb', line 11
def lambda_spec_template
template = "<% lambda_functions.each do |function| %>\ndescribe lambda('<%= function.function_name %>') do\n it { should exist }\n its(:description) { should eq '<%= function.description %>' }\n its(:runtime) { should eq '<%= function.runtime %>' }\n its(:handler) { should eq '<%= function.handler %>' }\n its(:code_size) { should eq <%= function.code_size %> }\n its(:timeout) { should eq <%= function.timeout %> }\n its(:memory_size) { should eq <%= function.memory_size %> }\nend\n<% end %>\n"
template
end
|