summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2014-10-10 11:10:07 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2014-10-10 11:10:07 -0700
commitdd163b103b06ae2ff8f9b2473a4e5a0938e44559 (patch)
treeb862a8287611b637d0a8d6cb600f6ad3a940cc75
parent34221471b5e9924ed7dd7915170245a081c9b71f (diff)
downloadchef-jdmundrawala/path-hell.tar.gz
Removing test that is breaking our tester boxes.jdmundrawala/path-hell
-rwxr-xr-xspec/functional/resource/env_spec.rb26
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/functional/resource/env_spec.rb b/spec/functional/resource/env_spec.rb
index 24fe5e1dff..f65b7f8c7d 100755
--- a/spec/functional/resource/env_spec.rb
+++ b/spec/functional/resource/env_spec.rb
@@ -122,32 +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') }
-
- it 'should expand PATH' do
- 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
- # 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