Methods
public instance
Public instance methods
description
()
[show source]
# File lib/spec/matchers/exist.rb, line 18 def description "exists" end
failure_message_for_should
()
[show source]
# File lib/spec/matchers/exist.rb, line 10 def failure_message_for_should "expected #{@actual.inspect} to exist, but it doesn't." end
failure_message_for_should_not
()
[show source]
# File lib/spec/matchers/exist.rb, line 14 def failure_message_for_should_not "expected #{@actual.inspect} to not exist, but it does." end
matches?
(actual)
[show source]
# File lib/spec/matchers/exist.rb, line 5 def matches?(actual) @actual = actual actual.exist? end