templates/default.erb in chefspec-bootstrap-0.0.1 vs templates/default.erb in chefspec-bootstrap-0.0.2
- old
+ new
@@ -3,7 +3,11 @@
describe '<%= cookbook %>::<%= recipe %>' do
let(:chef_run) { ChefSpec::Runner.new.converge(described_recipe) }
it 'runs successfully' do
expect{chef_run}.not_to raise_error
- end
+ end<% if test_cases %><% test_cases.each do |test_case| %>
+
+ it "<%= test_case[:it] %>" do
+ expect(chef_run).to <%= test_case[:action] %>("<%= test_case[:name] %>")
+ end<% end %><% end %>
end