Skip to content

Commit

Permalink
Merge pull request #1457 from nevinera/nev--remove-dead-base-matcher-…
Browse files Browse the repository at this point in the history
…code

Drop dead (private) methods from BaseMatcher
  • Loading branch information
pirj authored May 9, 2024
2 parents e859d35 + 8a1429d commit 94f00e3
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions lib/rspec/matchers/built_in/base_matcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,24 +124,6 @@ def self.underscore(camel_cased_word)
end
private_class_method :underscore

private

def assert_ivars(*expected_ivars)
return unless (expected_ivars - present_ivars).any?
ivar_list = EnglishPhrasing.list(expected_ivars)
raise "#{self.class.name} needs to supply#{ivar_list}"
end

if RUBY_VERSION.to_f < 1.9
# :nocov:
def present_ivars
instance_variables.map(&:to_sym)
end
# :nocov:
else
alias present_ivars instance_variables
end

# @private
module HashFormatting
# `{ :a => 5, :b => 2 }.inspect` produces:
Expand Down

0 comments on commit 94f00e3

Please sign in to comment.