Class: Capybara::RSpecMatchers::Matchers::Base
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Instance Chain:
self,
Compound ,
RSpec::Matchers::Composable
|
|
Inherits: | Object |
Defined in: | lib/capybara/rspec/matchers/base.rb |
Class Method Summary
- .new(*args, **kw_args, &filter_block) ⇒ Base constructor
Instance Attribute Summary
- #failure_message readonly
- #failure_message_when_negated readonly
Instance Method Summary
- #session_options private
- #session_query_args private
- #session_query_options private
Compound
- Included
Constructor Details
.new(*args, **kw_args, &filter_block) ⇒ Base
# File 'lib/capybara/rspec/matchers/base.rb', line 15
def initialize(*args, **kw_args, &filter_block) @args = args.dup @kw_args = kw_args || {} @filter_block = filter_block end
Instance Attribute Details
#failure_message (readonly)
[ GitHub ]# File 'lib/capybara/rspec/matchers/base.rb', line 13
attr_reader :, :
#failure_message_when_negated (readonly)
[ GitHub ]# File 'lib/capybara/rspec/matchers/base.rb', line 13
attr_reader :, :
Instance Method Details
#session_options (private)
[ GitHub ]# File 'lib/capybara/rspec/matchers/base.rb', line 37
def @context_el ||= nil if @context_el.respond_to? : @context_el. elsif @context_el.respond_to? :current_scope @context_el.current_scope. else Capybara. end end
#session_query_args (private)
[ GitHub ]# File 'lib/capybara/rspec/matchers/base.rb', line 23
def session_query_args # if @args.last.is_a? Hash # @args.last[:session_options] = session_options # else # @args.push(session_options: session_options) # end @args end
#session_query_options (private)
[ GitHub ]# File 'lib/capybara/rspec/matchers/base.rb', line 32
def @kw_args[: ] = @kw_args end