Sha256: 4d6ea83709f7d995de580620056b5ffe655603fb5324a72eec7d7b11966e18dd
Contents?: true
Size: 485 Bytes
Versions: 2
Compression:
Stored size: 485 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 expect(chef_run).to <%= test_case[:expect] %>("<%= test_case[:name] %>") end<% end %><% else %> it 'runs successfully' do expect{chef_run}.not_to raise_error end<% end %> end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chefspec-bootstrap-0.0.5 | templates/default.erb |
chefspec-bootstrap-0.0.4 | templates/default.erb |