diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-05-10 15:35:11 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-05-10 15:35:11 -0700 |
commit | b3a1cc9165904e6be09b8a62065e9289a905bfb4 (patch) | |
tree | 9810a8e7f2b763b7fc765683de5c8f2116371396 /spec | |
parent | b584400b5f7b7e315e9602937c4803d453bad3ab (diff) | |
download | chef-b3a1cc9165904e6be09b8a62065e9289a905bfb4.tar.gz |
clean up updating_home?lcg/cleanup-user
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/support/shared/unit/provider/useradd_based_user_provider.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/shared/unit/provider/useradd_based_user_provider.rb b/spec/support/shared/unit/provider/useradd_based_user_provider.rb index cc2d22f64f..e123e8e0e2 100644 --- a/spec/support/shared/unit/provider/useradd_based_user_provider.rb +++ b/spec/support/shared/unit/provider/useradd_based_user_provider.rb @@ -1,7 +1,7 @@ # # Author:: Adam Jacob (<adam@chef.io>) # Author:: Daniel DeLeo (<dan@chef.io>) -# Copyright:: Copyright 2008-2016, Chef Software Inc. +# Copyright:: Copyright 2008-2018, Chef Software Inc. # # License:: Apache License, Version 2.0 # @@ -385,7 +385,7 @@ shared_examples_for "a useradd-based user provider" do |supported_useradd_option expect(Pathname).to receive(:new).with(@new_resource.home).and_return(@new_home_mock) expect(@new_home_mock).to receive(:cleanpath).and_return(home_check["new_resource_home"].last) - expect(provider.updating_home?).to eq(home_check["expected_result"]) + expect(provider.send(:updating_home?)).to eq(home_check["expected_result"]) end end it "should return true if the current home does not exist but a home is specified by the new resource" do @@ -396,7 +396,7 @@ shared_examples_for "a useradd-based user provider" do |supported_useradd_option @current_resource.home nil @new_resource.home "/home/kitten" - expect(provider.updating_home?).to eq(true) + expect(provider.send(:updating_home?)).to eq(true) end end end |