diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-04-11 12:48:22 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-04-15 17:50:15 -0700 |
commit | e3a6565927e854cd5968bd3a6bd2248ec1245549 (patch) | |
tree | 590bfa3f9c3a4992096c0ccb679fcc7deda74243 /spec/unit/resource_spec.rb | |
parent | a959404b15ba6bdc98063cfa0c70e6f9eec9ccee (diff) | |
download | chef-e3a6565927e854cd5968bd3a6bd2248ec1245549.tar.gz |
add resource_resolver and resource_priority_map
also wire them up through the Chef class.
Diffstat (limited to 'spec/unit/resource_spec.rb')
-rw-r--r-- | spec/unit/resource_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/unit/resource_spec.rb b/spec/unit/resource_spec.rb index 8214021f65..6b2d6c89d3 100644 --- a/spec/unit/resource_spec.rb +++ b/spec/unit/resource_spec.rb @@ -709,22 +709,22 @@ describe Chef::Resource do end it 'adds mappings for a single platform' do - expect(Chef::Resource.node_map).to receive(:set).with( - :dinobot, Chef::Resource::Klz, { platform: ['autobots'] } + expect(Chef::Resource::Klz.node_map).to receive(:set).with( + :dinobot, true, { platform: ['autobots'] } ) klz.provides :dinobot, platform: ['autobots'] end it 'adds mappings for multiple platforms' do - expect(Chef::Resource.node_map).to receive(:set).with( - :energy, Chef::Resource::Klz, { platform: ['autobots', 'decepticons']} + expect(Chef::Resource::Klz.node_map).to receive(:set).with( + :energy, true, { platform: ['autobots', 'decepticons']} ) klz.provides :energy, platform: ['autobots', 'decepticons'] end it 'adds mappings for all platforms' do - expect(Chef::Resource.node_map).to receive(:set).with( - :tape_deck, Chef::Resource::Klz, {} + expect(Chef::Resource::Klz.node_map).to receive(:set).with( + :tape_deck, true, {} ) klz.provides :tape_deck end |