Skip to content

Commit

Permalink
fixup mock_function
Browse files Browse the repository at this point in the history
- remove deprecated function
- remove bad whitespace
  • Loading branch information
rrotter committed Dec 11, 2024
1 parent 46c2206 commit d13d36a
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions spec/spec_helper/mock_function.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit d13d36a

Please sign in to comment.