Class: CapybaraMiniTestSpec::TestName

Inherits:
Object
  • Object
show all
Includes:
Capybara::RSpecMatchers
Defined in:
lib/capybara_minitest_spec/test_name.rb

Overview

Represents the a matcher name. Returns different forms of the name depending on whether it is positive or negative.

Direct Known Subclasses

NegativeTestName, PositiveTestName

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ TestName

Returns a new instance of TestName.



8
9
10
# File 'lib/capybara_minitest_spec/test_name.rb', line 8

def initialize(name)
  @original_name = name.to_s
end

Instance Method Details

#matcher(*args) ⇒ Object



12
13
14
# File 'lib/capybara_minitest_spec/test_name.rb', line 12

def matcher(*args)
  send @original_name, *args
end