summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2014-10-10 09:09:12 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2014-10-10 09:09:12 -0700
commite01761ea9bba8d681377239291bfd1166bfd326f (patch)
tree3cc51f74348d5b3b5c570d1947f89615a72d5119
parent74e213662cb9c24ba5d871c490f481f33564eb7d (diff)
downloadchef-jdmundrawala/test3.tar.gz
Removed test that modifies pathjdmundrawala/test3
-rwxr-xr-xspec/functional/resource/env_spec.rb29
1 files changed, 0 insertions, 29 deletions
diff --git a/spec/functional/resource/env_spec.rb b/spec/functional/resource/env_spec.rb
index 7907234889..f65b7f8c7d 100755
--- a/spec/functional/resource/env_spec.rb
+++ b/spec/functional/resource/env_spec.rb
@@ -122,35 +122,6 @@ describe Chef::Resource::Env, :windows_only do
test_resource.run_action(:modify)
expect(ENV[chef_env_test_lower_case]).to eq(env_value_expandable)
end
-
- context 'when using PATH' do
- let(:random_name) { Time.now.to_i }
- let(:env_val) { "#{env_value_expandable}_#{random_name}"}
- let(:path_before) { test_resource.provider_for_action(test_resource.action).env_value('PATH') }
- let(:env_path_before) { ENV['PATH'] }
-
- it 'should expand PATH' do
- path_before.should_not include(env_val)
- env_path_before.should_not include(env_val)
- test_resource.key_name('PATH')
- test_resource.value("#{path_before};#{env_val}")
- test_resource.run_action(:create)
- ENV['PATH'].should_not include(env_val)
- ENV['PATH'].should include("#{random_name}")
- end
-
- after(:each) do
- ENV['PATH'] = env_path_before
- # cleanup so we don't flood the path
- test_resource.key_name('PATH')
- test_resource.value(path_before)
- test_resource.run_action(:create)
- if test_resource.provider_for_action(test_resource.action).env_value('PATH') != path_before
- raise 'Failed to cleanup after ourselves'
- end
- end
- end
-
end
context "when the delete action is invoked" do