spec/unit/chef/sugar/run_context_spec.rb in chef-sugar-2.2.0 vs spec/unit/chef/sugar/run_context_spec.rb in chef-sugar-2.3.0
- old
+ new
@@ -6,14 +6,14 @@
describe '#includes_recipe?' do
let(:node) { double(Chef::Node) }
it 'returns true when the recipe exists' do
allow(node).to receive(:recipe?).and_return(true)
- expect(described_class.includes_recipe?(node, 'foo')).to be_truthy
+ expect(described_class.includes_recipe?(node, 'foo')).to be true
end
it 'returns false when the recipe does not exist' do
allow(node).to receive(:recipe?).and_return(false)
- expect(described_class.includes_recipe?(node, 'bar')).to be_falsey
+ expect(described_class.includes_recipe?(node, 'bar')).to be false
end
end
end