Class: Roger::MockShell
- Inherits:
-
Thor::Shell::Basic
- Object
- Thor::Shell::Basic
- Roger::MockShell
- Defined in:
- lib/roger/testing/mock_shell.rb
Overview
A shell that does not output to stdout but will just have two StringIO objects which can be accessed by using #stdout and #stderr methods.
Instance Method Summary collapse
Instance Method Details
#stderr ⇒ Object
14 15 16 |
# File 'lib/roger/testing/mock_shell.rb', line 14 def stderr @_stderr ||= StringIO.new end |
#stdout ⇒ Object
10 11 12 |
# File 'lib/roger/testing/mock_shell.rb', line 10 def stdout @_stdout ||= StringIO.new end |