From d13d36a98a40aae5414e4402290d0a3165ce08d2 Mon Sep 17 00:00:00 2001 From: Ryan Rotter Date: Wed, 11 Dec 2024 15:42:58 -0500 Subject: [PATCH] fixup mock_function - remove deprecated function - remove bad whitespace --- spec/spec_helper/mock_function.rb | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/spec/spec_helper/mock_function.rb b/spec/spec_helper/mock_function.rb index d16984cea..7e74d9a66 100644 --- a/spec/spec_helper/mock_function.rb +++ b/spec/spec_helper/mock_function.rb @@ -9,10 +9,10 @@ # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of # the Software, and to permit persons to whom the Software is furnished to do so, # subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, # INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. @@ -65,17 +65,6 @@ def expected(*args) self.expects(:execute) end - # Use stubbed instead, see readme - def stub - self.stubs(:call) - end - - # Use expected instead, see readme - def expect(*args) - RSpec::Puppet::Support.clear_cache unless args.include? :keep_cache - self.expects(:call) - end - private def parse_options!(options)