Module: Capybara::RSpecMatchers::Compound

Includes:
RSpec::Matchers::Composable
Included in:
Matcher, NegatedMatcher
Defined in:
lib/capybara/rspec/compound.rb

Defined Under Namespace

Classes: And, CapybaraEvaluator, Or

Instance Method Summary collapse

Instance Method Details

#and(matcher) ⇒ Object



8
9
10
# File 'lib/capybara/rspec/compound.rb', line 8

def and(matcher)
  And.new(self, matcher)
end

#and_then(matcher) ⇒ Object



12
13
14
# File 'lib/capybara/rspec/compound.rb', line 12

def and_then(matcher)
  ::RSpec::Matchers::BuiltIn::Compound::And.new(self, matcher)
end

#or(matcher) ⇒ Object



16
17
18
# File 'lib/capybara/rspec/compound.rb', line 16

def or(matcher)
  Or.new(self, matcher)
end