diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-03-02 16:14:31 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-03-04 13:52:44 -0800 |
commit | 8099d4c0440af78b42866926aedfcaf32d4c331f (patch) | |
tree | 54b72733b5af92f2175bce1c00ce10cc35d85583 | |
parent | c4442ecb5769ee892000b7084cdd02b898a08aa6 (diff) | |
download | chef-8099d4c0440af78b42866926aedfcaf32d4c331f.tar.gz |
rename 'hash' to 'provider_mapping'
slightly less generic
-rw-r--r-- | spec/unit/provider_resolver_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/unit/provider_resolver_spec.rb b/spec/unit/provider_resolver_spec.rb index 578535bf2a..63c381f08e 100644 --- a/spec/unit/provider_resolver_spec.rb +++ b/spec/unit/provider_resolver_spec.rb @@ -474,7 +474,7 @@ describe Chef::ProviderResolver do end end - hash = { + provider_mapping = { "mac_os_x" => { :package => Chef::Provider::Package::Homebrew, :user => Chef::Provider::User::Dscl, @@ -547,7 +547,7 @@ describe Chef::ProviderResolver do let(:platform_family) { "mac_os_x" } let(:platform_version) { "10.9.2" } - do_platform(hash[platform]) + do_platform(provider_mapping[platform]) end end @@ -558,7 +558,7 @@ describe Chef::ProviderResolver do let(:platform_family) { "windows" } let(:platform_version) { "10.9.2" } - do_platform(hash[platform]) + do_platform(provider_mapping[platform]) end end @@ -568,7 +568,7 @@ describe Chef::ProviderResolver do let(:platform_family) { "aix" } let(:platform_version) { "6.2" } - do_platform(hash['aix']) + do_platform(provider_mapping['aix']) end %w{netbsd openbsd}.each do |platform| @@ -578,7 +578,7 @@ describe Chef::ProviderResolver do let(:platform_family) { platform } let(:platform_version) { "10.0-RELEASE" } - do_platform(hash[platform]) + do_platform(provider_mapping[platform]) end end end |