Sha256: acf4d9d216f301c774afe3e8faa9bff3ade95ae0a8c69cd81a31cd23f111ef58
Contents?: true
Size: 721 Bytes
Versions: 1
Compression:
Stored size: 721 Bytes
Contents
require 'chefspec'<% if spec_helper %> require_relative '../spec_helper'<% end %> describe '<%= cookbook %>::<%= recipe %>' do let(:chef_run) { ChefSpec::Runner.new.converge(described_recipe) }<% if not test_cases.empty? %><% test_cases.each do |test_case| %> it '<%= test_case[:it] %>' do<% if test_case[:nothing] %> expect(chef_run.<%= test_case[:noun] %>('<%= test_case[:adjective] %>')).to do_nothing<% else %> expect(chef_run).to<% if test_case[:guarded] %>_not<% end %> <%= test_case[:expect] %>('<%= test_case[:name] %>')<% if test_case[:compile_time] %>.at_compile_time<% end %><% end %> end<% end %><% else %> it 'runs successfully' do expect { chef_run }.to raise_error end<% end %> end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chefspec-bootstrap-0.1.0 | templates/default.erb |