class Capybara::RSpecMatchers::Matchers::Compound::CapybaraEvaluator

Public Class Methods

new(actual) click to toggle source
# File lib/isomorfeus/puppetmaster/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

matcher_matches?(matcher) click to toggle source
# File lib/isomorfeus/puppetmaster/rspec/matchers/compound.rb, line 28
def matcher_matches?(matcher)
  @match_results[matcher]
end
reset() click to toggle source
# File lib/isomorfeus/puppetmaster/rspec/matchers/compound.rb, line 32
def reset
  @match_results.clear
end