diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-13 09:36:21 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-13 09:36:21 -0800 |
commit | ff2fd7a3de84a3042b37b2378276d003303a4687 (patch) | |
tree | efeae1eba6f68c6220a25a58f9ac8f383535445f /spec | |
parent | 6ff26d1cad9256b124157531e3b7b54ef63f85ff (diff) | |
parent | e038fb65f749448db2fa911391ac9de768dc2578 (diff) | |
download | chef-ff2fd7a3de84a3042b37b2378276d003303a4687.tar.gz |
Merge pull request #4393 from chef/lcg/duplicated-keys
fix Lint/DuplicatedKey
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/provider/service/aixinit_service_spec.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/spec/unit/provider/service/aixinit_service_spec.rb b/spec/unit/provider/service/aixinit_service_spec.rb index e4c9faa8b4..9977343daa 100644 --- a/spec/unit/provider/service/aixinit_service_spec.rb +++ b/spec/unit/provider/service/aixinit_service_spec.rb @@ -208,7 +208,9 @@ describe Chef::Provider::Service::AixInit do context "when rc2.d contains both start and stop scripts" do before do @files = ["/etc/rc.d/rc2.d/S20apache", "/etc/rc.d/rc2.d/K80apache"] - @priority = {2 => [:start, 20], 2 => [:stop, 80]} + # FIXME: this is clearly buggy the duplicated keys do not work + #@priority = {2 => [:start, 20], 2 => [:stop, 80]} + @priority = {2 => [:stop, 80]} allow(Dir).to receive(:glob).with(["/etc/rc.d/rc2.d/[SK][0-9][0-9]#{@new_resource.service_name}", "/etc/rc.d/rc2.d/[SK]chef"]).and_return(@files) end @@ -253,7 +255,9 @@ describe Chef::Provider::Service::AixInit do context "when rc2.d contains both start and stop scripts" do before do files = ["/etc/rc.d/rc2.d/Sapache", "/etc/rc.d/rc2.d/Kapache"] - @priority = {2 => [:start, ''], 2 => [:stop, '']} + # FIXME: this is clearly buggy the duplicated keys do not work + #@priority = {2 => [:start, ''], 2 => [:stop, '']} + @priority = {2 => [:stop, '']} allow(Dir).to receive(:glob).with(["/etc/rc.d/rc2.d/[SK][0-9][0-9]#{@new_resource.service_name}", "/etc/rc.d/rc2.d/[SK]#{@new_resource.service_name}"]).and_return(files) end @@ -266,4 +270,3 @@ describe Chef::Provider::Service::AixInit do end end end - |