Class: CapybaraMiniTestSpec::TestName
- Inherits:
-
Object
- Object
- CapybaraMiniTestSpec::TestName
- 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
Instance Method Summary collapse
-
#initialize(name) ⇒ TestName
constructor
A new instance of TestName.
- #matcher(*args) ⇒ Object
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 |