class Capybara::RSpecMatchers::Matchers::Compound::CapybaraEvaluator
Public Class Methods
Source
# File lib/capybara/rspec/matchers/compound.rb, line 23 def initialize(actual) @actual = actual @match_results = Hash.new { |hsh, matcher| hsh[matcher] = matcher.matches?(@actual) } end
Public Instance Methods
Source
# File lib/capybara/rspec/matchers/compound.rb, line 28 def matcher_matches?(matcher) @match_results[matcher] end
Source
# File lib/capybara/rspec/matchers/compound.rb, line 32 def reset @match_results.clear end