diff options
author | tyler-ball <tyleraball@gmail.com> | 2014-10-16 10:07:40 -0500 |
---|---|---|
committer | tyler-ball <tyleraball@gmail.com> | 2014-10-16 10:33:02 -0500 |
commit | 72dd653d9481848a7489845a46851c66964c5a37 (patch) | |
tree | 82b3be7d0c343182ac9fc294459495ff2f70b911 /spec/unit/resource_collection_spec.rb | |
parent | 322eaf62464f306e2e3b3fec5b9fed15d17fc50b (diff) | |
download | chef-72dd653d9481848a7489845a46851c66964c5a37.tar.gz |
Refactoring ResourceCollection interface to be backwards compatiable, all specs continue to pass, removing ResourceSet and ResourceList from consumer knowledge
Diffstat (limited to 'spec/unit/resource_collection_spec.rb')
-rw-r--r-- | spec/unit/resource_collection_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/resource_collection_spec.rb b/spec/unit/resource_collection_spec.rb index cf119f1ab0..631e3730d8 100644 --- a/spec/unit/resource_collection_spec.rb +++ b/spec/unit/resource_collection_spec.rb @@ -300,13 +300,13 @@ describe Chef::ResourceCollection do describe "provides access to the raw resources array" do it "returns the resources via the all_resources method" do - @rc.all_resources.should equal(@rc.instance_variable_get(:@resources)) + @rc.all_resources.should equal(@rc.instance_variable_get(:@resource_list).instance_variable_get(:@resources)) end end describe "provides access to stepable iterator" do it "returns the iterator object" do - @rc.instance_variable_set(:@iterator, :fooboar) + @rc.instance_variable_get(:@resource_list).instance_variable_set(:@iterator, :fooboar) @rc.iterator.should == :fooboar end end |