Class: Capybara::Minitest::Assertions::MatcherRefutation

Inherits:
MatcherAssertion show all
Defined in:
lib/capybara/minitest/assertions/matcher.rb

Overview

Represents a refutation based on a Capybara RSpec matcher.

Instance Attribute Summary

Attributes inherited from MatcherAssertion

#matcher

Class Method Summary collapse

Methods inherited from MatcherAssertion

#initialize, #name, #test

Constructor Details

This class inherits a constructor from Capybara::Minitest::Assertions::MatcherAssertion

Class Method Details

.matcher_failure_message_methodObject



119
120
121
# File 'lib/capybara/minitest/assertions/matcher.rb', line 119

def self.matcher_failure_message_method
  :failure_message_when_negated
end

.matcher_test_methodObject



115
116
117
# File 'lib/capybara/minitest/assertions/matcher.rb', line 115

def self.matcher_test_method
  :does_not_match?
end

.name_prefixObject



111
112
113
# File 'lib/capybara/minitest/assertions/matcher.rb', line 111

def self.name_prefix
  'refute'
end