diff options
| author | John Keiser <john@johnkeiser.com> | 2015-05-13 13:38:41 -0700 |
|---|---|---|
| committer | John Keiser <john@johnkeiser.com> | 2015-05-13 13:43:15 -0700 |
| commit | 34638bf82798bdcf01c28fbde6ac68dd1949c301 (patch) | |
| tree | ba58fa54264d520f6d4b9ae201176f5727e462ad /spec/unit/lwrp_spec.rb | |
| parent | b6336c9de74095cc087463d5c6a3b28aac44e688 (diff) | |
| download | chef-34638bf82798bdcf01c28fbde6ac68dd1949c301.tar.gz | |
Add Chef::ResourceResolver.resolvejk/missing_method_missing
Diffstat (limited to 'spec/unit/lwrp_spec.rb')
| -rw-r--r-- | spec/unit/lwrp_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/lwrp_spec.rb b/spec/unit/lwrp_spec.rb index a1cccb3071..ff7f8e7d7b 100644 --- a/spec/unit/lwrp_spec.rb +++ b/spec/unit/lwrp_spec.rb @@ -164,6 +164,10 @@ describe "LWRP" do expect { Chef::Resource::LwrpFoo }.to raise_error(Chef::Exceptions::DeprecatedFeatureError) end + it "should be resolvable with Chef::ResourceResolver.resolve(:lwrp_foo)" do + expect(Chef::ResourceResolver.resolve(:lwrp_foo, node: Chef::Node.new)).to eq(get_lwrp(:lwrp_foo)) + end + it "should set resource_name" do expect(get_lwrp(:lwrp_foo).new("blah").resource_name).to eql(:lwrp_foo) end |
