diff options
author | harikesh-kolekar <harikesh.kolekar@msystechnologies.com> | 2018-01-29 12:55:28 +0000 |
---|---|---|
committer | harikesh-kolekar <harikesh.kolekar@msystechnologies.com> | 2018-01-30 07:41:03 +0000 |
commit | 85ad3ee585ab50d173c083325d106967d2161dab (patch) | |
tree | ab53f9baee15101758272642479ac51b2031d5cd /spec/functional | |
parent | 4b8580ceb864961f77c87e5013eb1bf36463b895 (diff) | |
download | chef-85ad3ee585ab50d173c083325d106967d2161dab.tar.gz |
rename env resource to windows_env
Signed-off-by: harikesh-kolekar <harikesh.kolekar@msystechnologies.com>
Diffstat (limited to 'spec/functional')
-rw-r--r--[-rwxr-xr-x] | spec/functional/resource/windows_env_spec.rb (renamed from spec/functional/resource/env_spec.rb) | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/functional/resource/env_spec.rb b/spec/functional/resource/windows_env_spec.rb index 4c96b33081..a6c6b39970 100755..100644 --- a/spec/functional/resource/env_spec.rb +++ b/spec/functional/resource/windows_env_spec.rb @@ -18,7 +18,7 @@ require "spec_helper" -describe Chef::Resource::Env, :windows_only do +describe Chef::Resource::WindowsEnv, :windows_only do context "when running on Windows" do let(:chef_env_test_lower_case) { "chefenvtest" } let(:chef_env_test_mixed_case) { "chefENVtest" } @@ -54,18 +54,18 @@ describe Chef::Resource::Env, :windows_only do Chef::RunContext.new(node, {}, empty_events) end let(:test_resource) do - Chef::Resource::Env.new("unknown", test_run_context) + Chef::Resource::WindowsEnv.new("unknown", test_run_context) end before(:each) do - resource_lower = Chef::Resource::Env.new(chef_env_test_lower_case, test_run_context) + resource_lower = Chef::Resource::WindowsEnv.new(chef_env_test_lower_case, test_run_context) resource_lower.run_action(:delete) - resource_lower = Chef::Resource::Env.new(chef_env_test_lower_case, test_run_context) + resource_lower = Chef::Resource::WindowsEnv.new(chef_env_test_lower_case, test_run_context) resource_lower.user(env_user) resource_lower.run_action(:delete) - resource_mixed = Chef::Resource::Env.new(chef_env_test_mixed_case, test_run_context) + resource_mixed = Chef::Resource::WindowsEnv.new(chef_env_test_mixed_case, test_run_context) resource_mixed.run_action(:delete) - resource_mixed = Chef::Resource::Env.new(chef_env_test_mixed_case, test_run_context) + resource_mixed = Chef::Resource::WindowsEnv.new(chef_env_test_mixed_case, test_run_context) resource_lower.user(env_user) resource_mixed.run_action(:delete) end @@ -142,7 +142,7 @@ describe Chef::Resource::Env, :windows_only do expect(ENV[chef_env_test_lower_case]).to eq(nil) test_resource.key_name(chef_env_test_lower_case) test_resource.value(env_value1) - expect { test_resource.run_action(:modify) }.to raise_error(Chef::Exceptions::Env) + expect { test_resource.run_action(:modify) }.to raise_error(Chef::Exceptions::WindowsEnv) end context "when env variable exist with same name" do |