Class: Capybara::RSpecMatchers::Matchers::Base

Inherits:
Object
  • Object
show all
Includes:
Compound
Defined in:
lib/capybara/rspec/matchers/base.rb

Direct Known Subclasses

WrappedElementMatcher

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Compound

#and, #and_then, #or

Constructor Details

#initialize(*args, &filter_block) ⇒ Base

Returns a new instance of Base.



13
14
15
16
# File 'lib/capybara/rspec/matchers/base.rb', line 13

def initialize(*args, &filter_block)
  @args = args.dup
  @filter_block = filter_block
end

Instance Attribute Details

#failure_messageObject (readonly)

Returns the value of attribute failure_message.



11
12
13
# File 'lib/capybara/rspec/matchers/base.rb', line 11

def failure_message
  @failure_message
end

#failure_message_when_negatedObject (readonly)

Returns the value of attribute failure_message_when_negated.



11
12
13
# File 'lib/capybara/rspec/matchers/base.rb', line 11

def failure_message_when_negated
  @failure_message_when_negated
end