Class: Wukong::SpecHelpers::StderrMatcher

Inherits:
IntegrationTestMatcher show all
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

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

#descriptionObject



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

#outputObject

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_descriptionObject

:nodoc:



125
126
127
# File 'lib/wukong/spec_helpers/integration_tests/integration_test_matchers.rb', line 125

def output_description
  "STDERR"
end