diff options
author | lamont-granquist <lamont@scriptkiddie.org> | 2014-01-15 17:30:18 -0800 |
---|---|---|
committer | lamont-granquist <lamont@scriptkiddie.org> | 2014-01-15 17:30:18 -0800 |
commit | 4bffa7d9682170cd940d544ddadc485a8c90c032 (patch) | |
tree | 92735d9058cc911669d140d11324b0649d5a3ff6 | |
parent | c4620aae4c08e33a1ee593799a80eee473c90a01 (diff) | |
parent | 8eb80611c566c92c4c39d2a0c1493be68f6e5daf (diff) | |
download | chef-4bffa7d9682170cd940d544ddadc485a8c90c032.tar.gz |
Merge pull request #1215 from opscode/lcg/fedora-spec-fix
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. |