diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-01-15 16:39:03 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-01-15 16:39:03 -0800 |
commit | 8eb80611c566c92c4c39d2a0c1493be68f6e5daf (patch) | |
tree | 92735d9058cc911669d140d11324b0649d5a3ff6 | |
parent | c4620aae4c08e33a1ee593799a80eee473c90a01 (diff) | |
download | chef-8eb80611c566c92c4c39d2a0c1493be68f6e5daf.tar.gz |
fix platform_family check for fedora
-rw-r--r-- | spec/functional/resource/user_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/functional/resource/user_spec.rb b/spec/functional/resource/user_spec.rb index 92248a95bb..434faec408 100644 --- a/spec/functional/resource/user_spec.rb +++ b/spec/functional/resource/user_spec.rb @@ -196,7 +196,7 @@ describe Chef::Resource::User, metadata do pw_entry.home.should == "/home/#{username}" end - if OHAI_SYSTEM["platform_family"] == "rhel" + if %w{rhel fedora}.include?(OHAI_SYSTEM["platform_family"]) # Inconsistent behavior. See: CHEF-2205 it "creates the home dir when not explicitly asked to on RHEL (XXX)" do File.should exist("/home/#{username}") @@ -340,7 +340,7 @@ describe Chef::Resource::User, metadata do let(:existing_manage_home) { false } let(:manage_home) { true } - if OHAI_SYSTEM["platform_family"] == "rhel" + if %w{rhel fedora}.include?(OHAI_SYSTEM["platform_family"]) # Inconsistent behavior. See: CHEF-2205 it "created the home dir b/c of CHEF-2205 so it still exists" do # This behavior seems contrary to expectation and non-convergent. |