spec/unit/chef/sugar/node_spec.rb in chef-sugar-1.2.6 vs spec/unit/chef/sugar/node_spec.rb in chef-sugar-1.3.0

- old
+ new

@@ -13,22 +13,9 @@ expect(subject.in?('production')).to be_false expect(subject.in?(/production$/)).to be_false end end - describe '#includes_recipe?' do - it 'returns true when the recipe exists' do - subject.stub(:run_list).and_return(['recipe[magic::recipe]']) - expect(subject.includes_recipe?('recipe[magic::recipe]')).to be_true - end - - it 'returns false when the recipe does - not exist' do - subject.stub(:run_list).and_return([]) - expect(subject.includes_recipe?('recipe[magic::recipe]')).to be_false - end - end - describe '#deep_fetch' do let(:node) { described_class.new } before { node.default['apache2']['config']['root'] = '/var/www' } it 'fetches a deeply nested attribute' do