diff options
author | John Keiser <john@johnkeiser.com> | 2015-06-29 12:53:16 -0600 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-06-30 11:18:41 -0600 |
commit | 65f2812ffbd306bde3b1512e87e8bfae324d8087 (patch) | |
tree | 37c3291769d60ce03d28b0bb73ce0e4e35447d27 /spec | |
parent | 097d130a8761bca6e9f79934b0cffd2d151b302b (diff) | |
download | chef-65f2812ffbd306bde3b1512e87e8bfae324d8087.tar.gz |
Fix broken specs
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/resource_resolver_spec.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/spec/unit/resource_resolver_spec.rb b/spec/unit/resource_resolver_spec.rb index 09ff026575..b3bda9d945 100644 --- a/spec/unit/resource_resolver_spec.rb +++ b/spec/unit/resource_resolver_spec.rb @@ -31,19 +31,23 @@ describe Chef::ResourceResolver do context 'instance methods' do let(:resolver) do - described_class.new(Chef::Node.new, 'execute[echo]') + described_class.new(Chef::Node.new, 'execute') end it '#resolve' do - expect(resolver.resolve).to be_nil + expect(resolver.resolve).to eq Chef::Resource::Execute end it '#list' do - expect(resolver.list).to be_empty + expect(resolver.list).to eq [ Chef::Resource::Execute ] end - it '#provided_by?' do + it '#provided_by? returns true when resource class is in the list' do expect(resolver.provided_by?(Chef::Resource::Execute)).to be_truthy end + + it '#provided_by? returns false when resource class is not in the list' do + expect(resolver.provided_by?(Chef::Resource::File)).to be_falsey + end end end |