class Capybara::RSpecMatchers::Compound::CapybaraEvaluator
Public Class Methods
new(actual)
click to toggle source
# File lib/capybara/rspec/compound.rb, line 19 def initialize(actual) @actual = actual @match_results = Hash.new { |h, matcher| h[matcher] = matcher.matches?(@actual) } end
Public Instance Methods
matcher_matches?(matcher)
click to toggle source
# File lib/capybara/rspec/compound.rb, line 24 def matcher_matches?(matcher) @match_results[matcher] end
reset()
click to toggle source
# File lib/capybara/rspec/compound.rb, line 28 def reset @match_results.clear end