summaryrefslogtreecommitdiff
path: root/spec/functional/resource
diff options
context:
space:
mode:
authorsersut <serdar@opscode.com>2013-06-04 14:55:18 -0700
committersersut <serdar@opscode.com>2013-06-04 15:26:43 -0700
commita2c5f2a0f52b82c1720558f476d7802701e9f1c7 (patch)
tree32e87677af89c8bfe37ab9822196687778adf94a /spec/functional/resource
parent5d520495d6b5d169e35f53abf1c80ce01b18fa09 (diff)
downloadchef-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')
-rw-r--r--spec/functional/resource/cookbook_file_spec.rb2
-rw-r--r--spec/functional/resource/directory_spec.rb2
-rw-r--r--spec/functional/resource/file_spec.rb2
-rw-r--r--spec/functional/resource/link_spec.rb2
-rw-r--r--spec/functional/resource/remote_directory_spec.rb2
-rw-r--r--spec/functional/resource/remote_file_spec.rb2
-rw-r--r--spec/functional/resource/template_spec.rb10
7 files changed, 11 insertions, 11 deletions
diff --git a/spec/functional/resource/cookbook_file_spec.rb b/spec/functional/resource/cookbook_file_spec.rb
index adaa494e05..173dac8268 100644
--- a/spec/functional/resource/cookbook_file_spec.rb
+++ b/spec/functional/resource/cookbook_file_spec.rb
@@ -55,7 +55,7 @@ describe Chef::Resource::CookbookFile do
resource
end
- let!(:resource) do
+ let(:resource) do
create_resource
end
diff --git a/spec/functional/resource/directory_spec.rb b/spec/functional/resource/directory_spec.rb
index 0401f506c3..2c4025f83e 100644
--- a/spec/functional/resource/directory_spec.rb
+++ b/spec/functional/resource/directory_spec.rb
@@ -32,7 +32,7 @@ describe Chef::Resource::Directory do
Chef::Resource::Directory.new(path, run_context)
end
- let!(:resource) do
+ let(:resource) do
create_resource
end
diff --git a/spec/functional/resource/file_spec.rb b/spec/functional/resource/file_spec.rb
index 7da15ff2e5..f688bae434 100644
--- a/spec/functional/resource/file_spec.rb
+++ b/spec/functional/resource/file_spec.rb
@@ -32,7 +32,7 @@ describe Chef::Resource::File do
resource
end
- let!(:resource) do
+ let(:resource) do
r = create_resource
r.content(expected_content)
r
diff --git a/spec/functional/resource/link_spec.rb b/spec/functional/resource/link_spec.rb
index 9183b3f4d7..1e77f54102 100644
--- a/spec/functional/resource/link_spec.rb
+++ b/spec/functional/resource/link_spec.rb
@@ -116,7 +116,7 @@ describe Chef::Resource::Link, :not_supported_on_win2k3 do
resource
end
- let!(:resource) do
+ let(:resource) do
create_resource
end
diff --git a/spec/functional/resource/remote_directory_spec.rb b/spec/functional/resource/remote_directory_spec.rb
index 10d4d973e9..70e575abb0 100644
--- a/spec/functional/resource/remote_directory_spec.rb
+++ b/spec/functional/resource/remote_directory_spec.rb
@@ -48,7 +48,7 @@ describe Chef::Resource::RemoteDirectory do
FileUtils.touch(@existing2)
end
- let!(:resource) do
+ let(:resource) do
create_resource
end
diff --git a/spec/functional/resource/remote_file_spec.rb b/spec/functional/resource/remote_file_spec.rb
index e4fd25fcc6..369c08fb31 100644
--- a/spec/functional/resource/remote_file_spec.rb
+++ b/spec/functional/resource/remote_file_spec.rb
@@ -33,7 +33,7 @@ describe Chef::Resource::RemoteFile do
resource
end
- let!(:resource) do
+ let(:resource) do
create_resource
end
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