Class: Wukong::SpecHelpers::StdoutMatcher
- Inherits:
-
IntegrationTestMatcher
- Object
- IntegrationTestMatcher
- Wukong::SpecHelpers::StdoutMatcher
- 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
110 111 112 |
# File 'lib/wukong/spec_helpers/integration_tests/integration_test_matchers.rb', line 110 def description "have the correct #{output_description}" end |
#output ⇒ Object
Picks the STDOUT of the command.
101 102 103 |
# File 'lib/wukong/spec_helpers/integration_tests/integration_test_matchers.rb', line 101 def output runner.stdout end |
#output_description ⇒ Object
:nodoc:
106 107 108 |
# File 'lib/wukong/spec_helpers/integration_tests/integration_test_matchers.rb', line 106 def output_description "STDOUT" end |