Class: HammerCLI::Testing::OutputMatchers::MatcherBase
- Inherits:
-
Object
- Object
- HammerCLI::Testing::OutputMatchers::MatcherBase
show all
- Includes:
- MiniTest::Assertions
- Defined in:
- lib/hammer_cli/testing/output_matchers.rb
Instance Method Summary
collapse
Constructor Details
#initialize(expected = "") ⇒ 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
|