diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2014-10-10 12:30:56 -0700 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2014-10-10 12:30:56 -0700 |
commit | 35694311c2468ac32fa00463d04586eaf8fa2780 (patch) | |
tree | 112169d2499689b4d3625632b8ccacf8ae7721da | |
parent | 74e213662cb9c24ba5d871c490f481f33564eb7d (diff) | |
download | chef-jdmundrawala/test2.tar.gz |
Fixed the fixjdmundrawala/test2
-rw-r--r-- | Gemfile | 1 | ||||
-rwxr-xr-x | spec/functional/resource/env_spec.rb | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -8,6 +8,7 @@ group(:docgen) do end group(:development, :test) do + gem "pry" gem "simplecov" gem 'rack', "~> 1.5.1" diff --git a/spec/functional/resource/env_spec.rb b/spec/functional/resource/env_spec.rb index 7907234889..d5a753c6b2 100755 --- a/spec/functional/resource/env_spec.rb +++ b/spec/functional/resource/env_spec.rb @@ -140,7 +140,6 @@ describe Chef::Resource::Env, :windows_only do 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) @@ -148,6 +147,7 @@ describe Chef::Resource::Env, :windows_only do if test_resource.provider_for_action(test_resource.action).env_value('PATH') != path_before raise 'Failed to cleanup after ourselves' end + ENV['PATH'] = env_path_before end end |