Exception: BareTest::InvalidSelectors

Inherits:
StandardError
  • Object
show all
Defined in:
lib/baretest/invalidselectors.rb

Overview

Raised by BareTest.process_selectors if one or more invalid selectors are passed in.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(selectors) ⇒ InvalidSelectors

Generates a standard message



19
20
21
22
# File 'lib/baretest/invalidselectors.rb', line 19

def initialize(selectors) # :nodoc:
  @selectors = selectors
  super("Invalid selectors: #{selectors.join(', ')}")
end

Instance Attribute Details

#selectorsObject (readonly)

The selectors that are invalid



16
17
18
# File 'lib/baretest/invalidselectors.rb', line 16

def selectors
  @selectors
end