class Roger::MockShell
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.
Public Instance Methods
stderr()
click to toggle source
# File lib/roger/testing/mock_shell.rb, line 14 def stderr @_stderr ||= StringIO.new end
stdout()
click to toggle source
# File lib/roger/testing/mock_shell.rb, line 10 def stdout @_stdout ||= StringIO.new end