Class: Wukong::SpecHelpers::StderrMatcher
- Inherits:
-
IntegrationTestMatcher
- Object
- IntegrationTestMatcher
- Wukong::SpecHelpers::StderrMatcher
- Defined in:
- lib/wukong/spec_helpers/integration_tests/integration_test_matchers.rb
Overview
A matcher for the STDOUT of a command.
Instance Attribute Summary
Attributes inherited from IntegrationTestMatcher
#expectations, #failed_expectation, #runner
Instance Method Summary collapse
- #description ⇒ Object
-
#output ⇒ Object
Picks the STDOUT of the command.
-
#output_description ⇒ Object
:nodoc:.
Methods inherited from IntegrationTestMatcher
#failure_message, #formatted_command, #formatted_env, #formatted_error_output, #formatted_output, #initialize, #match_function, #match_type, #matches?, #negative_failure_message
Constructor Details
This class inherits a constructor from Wukong::SpecHelpers::IntegrationTestMatcher
Instance Method Details
#description ⇒ Object
129 130 131 |
# File 'lib/wukong/spec_helpers/integration_tests/integration_test_matchers.rb', line 129 def description "print an appropriate error message on #{output_description}" end |
#output ⇒ Object
Picks the STDOUT of the command.
120 121 122 |
# File 'lib/wukong/spec_helpers/integration_tests/integration_test_matchers.rb', line 120 def output runner.stderr end |
#output_description ⇒ Object
:nodoc:
125 126 127 |
# File 'lib/wukong/spec_helpers/integration_tests/integration_test_matchers.rb', line 125 def output_description "STDERR" end |