spec/unit/nodes_spec.rb in kitchen-nodes-0.5.0 vs spec/unit/nodes_spec.rb in kitchen-nodes-0.6.0
- old
+ new
@@ -10,11 +10,11 @@
describe Kitchen::Provisioner::Nodes do
let(:config) do
{
test_base_path: '/b',
kitchen_root: '/r',
- run_list: 'cookbook:recipe',
+ run_list: ['recipe[cookbook::default]'],
attributes: { att_key: 'att_val' },
client_rb: { environment: 'my_env' }
}
end
let(:instance) do
@@ -71,9 +71,15 @@
it 'sets the runlist' do
subject.create_node
expect(node[:run_list]).to eq config[:run_list]
+ end
+
+ it 'expands the runlist' do
+ subject.create_node
+
+ expect(node[:automatic][:recipes]).to eq ['cookbook::default']
end
it 'sets the normal attributes' do
subject.create_node