diff options
author | sersut <serdar@opscode.com> | 2013-06-04 14:55:18 -0700 |
---|---|---|
committer | sersut <serdar@opscode.com> | 2013-06-04 15:26:43 -0700 |
commit | a2c5f2a0f52b82c1720558f476d7802701e9f1c7 (patch) | |
tree | 32e87677af89c8bfe37ab9822196687778adf94a /spec/functional/resource/template_spec.rb | |
parent | 5d520495d6b5d169e35f53abf1c80ce01b18fa09 (diff) | |
download | chef-a2c5f2a0f52b82c1720558f476d7802701e9f1c7.tar.gz |
Convert eager creation of resources into lazy creation to pick up config changes during the tests.
Diffstat (limited to 'spec/functional/resource/template_spec.rb')
-rw-r--r-- | spec/functional/resource/template_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/functional/resource/template_spec.rb b/spec/functional/resource/template_spec.rb index f73f239b41..e40292e965 100644 --- a/spec/functional/resource/template_spec.rb +++ b/spec/functional/resource/template_spec.rb @@ -50,7 +50,7 @@ describe Chef::Resource::Template do resource end - let!(:resource) do + let(:resource) do create_resource end @@ -81,7 +81,7 @@ describe Chef::Resource::Template do include_context "diff disabled" - let!(:resource) do + let(:resource) do r = create_resource r.source "helper_test.erb" r @@ -193,7 +193,7 @@ describe Chef::Resource::Template do } context "for all lines" do - let!(:resource) do + let(:resource) do r = create_resource r.source "all_windows_line_endings.erb" r @@ -208,7 +208,7 @@ describe Chef::Resource::Template do end context "for some lines" do - let!(:resource) do + let(:resource) do r = create_resource r.source "some_windows_line_endings.erb" r @@ -223,7 +223,7 @@ describe Chef::Resource::Template do end context "for no lines" do - let!(:resource) do + let(:resource) do r = create_resource r.source "no_windows_line_endings.erb" r |