diff options
author | Nate Walck <nwalck@fb.com> | 2015-07-21 09:02:21 -0700 |
---|---|---|
committer | Nate Walck <nwalck@fb.com> | 2015-07-21 09:02:21 -0700 |
commit | fbadd31f51d316c27524b5b1e5af158f4375048c (patch) | |
tree | 8f0ceb6b4c5610abffce280dae258ef2be596600 /spec/unit/provider/service | |
parent | 5d9dbe530c52d3d95008324f86755b1a6aa0a374 (diff) | |
download | chef-fbadd31f51d316c27524b5b1e5af158f4375048c.tar.gz |
Fixed platform_Version logic
Diffstat (limited to 'spec/unit/provider/service')
-rw-r--r-- | spec/unit/provider/service/macosx_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/provider/service/macosx_spec.rb b/spec/unit/provider/service/macosx_spec.rb index c32f651731..54183bdc3d 100644 --- a/spec/unit/provider/service/macosx_spec.rb +++ b/spec/unit/provider/service/macosx_spec.rb @@ -66,9 +66,9 @@ XML if service_type == 'Agent' let(:plist) {'/Library/LaunchAgents/io.redis.redis-server.plist'} let(:session) {'-S Aqua '} - let(:su_cmd) {'su igor -c'} - if not ["10.10", "10.11"].include?(platform_version) - let(:su_cmd) {'su -l igor -c'} + let(:su_cmd) {'su -l igor -c'} + if platform_version == "10.9" + let(:su_cmd) {'su igor -c'} end end let(:service_label) {'io.redis.redis-server'} |