class TarkaMatchers::Matchers::Expectation::Fail
Public Instance Methods
description()
click to toggle source
# File lib/tarka_matchers/matchers/expectation/fail.rb, line 17 def description "fail." end
failure_message()
click to toggle source
# File lib/tarka_matchers/matchers/expectation/fail.rb, line 25 def failure_message "#{description} #{report}" end
failure_message_when_negated()
click to toggle source
# File lib/tarka_matchers/matchers/expectation/fail.rb, line 29 def failure_message_when_negated "#{description} #{report}" end
matches?(expectation)
click to toggle source
# File lib/tarka_matchers/matchers/expectation/fail.rb, line 12 def matches? expectation @actual = TarkaMatchers::Helpers::Expectation::Result.pass?{ expectation.call } @actual != true end
report()
click to toggle source
# File lib/tarka_matchers/matchers/expectation/fail.rb, line 21 def report "Spec result: #{@actual}" end
supports_block_expectations?()
click to toggle source
# File lib/tarka_matchers/matchers/expectation/fail.rb, line 10 def supports_block_expectations?; true; end