lib/rspec/matchers/built_in/exist.rb in rspec-expectations-3.0.0 vs lib/rspec/matchers/built_in/exist.rb in rspec-expectations-3.0.1
- old
+ new
@@ -35,17 +35,14 @@
# @return [String]
def failure_message_when_negated
"expected #{@actual.inspect} not to exist#{@test.validity_message}"
end
- private
-
# @api private
# Simple class for memoizing actual/expected for this matcher
# and examining the match
class ExistenceTest < Struct.new(:actual, :expected)
-
# @api private
# @return [Boolean]
def valid_test?
uniq_truthy_values.size == 1
end
@@ -81,10 +78,9 @@
def predicates
@predicates ||= [:exist?, :exists?].select { |p| actual.respond_to?(p) }
end
end
-
end
end
end
end