Class: HammerCLI::Testing::OutputMatchers::MatcherBase
- Inherits:
-
Object
- Object
- HammerCLI::Testing::OutputMatchers::MatcherBase
- Includes:
- Minitest::Assertions
- Defined in:
- lib/hammer_cli/testing/output_matchers.rb
Direct Known Subclasses
Instance Method Summary collapse
- #assert_match(test_ctx, actual) ⇒ Object
-
#initialize(expected = "") ⇒ MatcherBase
constructor
A new instance of MatcherBase.
Constructor Details
#initialize(expected = "") ⇒ MatcherBase
Returns a new instance of MatcherBase.
7 8 9 |
# File 'lib/hammer_cli/testing/output_matchers.rb', line 7 def initialize(expected="") @expected = expected end |
Instance Method Details
#assert_match(test_ctx, actual) ⇒ Object
11 12 13 |
# File 'lib/hammer_cli/testing/output_matchers.rb', line 11 def assert_match(test_ctx, actual) test_ctx.assert_equal(@expected, actual) end |