summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlamont-granquist <lamont@scriptkiddie.org>2014-01-15 17:30:18 -0800
committerlamont-granquist <lamont@scriptkiddie.org>2014-01-15 17:30:18 -0800
commit4bffa7d9682170cd940d544ddadc485a8c90c032 (patch)
tree92735d9058cc911669d140d11324b0649d5a3ff6
parentc4620aae4c08e33a1ee593799a80eee473c90a01 (diff)
parent8eb80611c566c92c4c39d2a0c1493be68f6e5daf (diff)
downloadchef-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.rb4
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.