spec/spec_helper.rb in commander-4.4.6 vs spec/spec_helper.rb in commander-4.4.7
- old
+ new
@@ -16,10 +16,10 @@
# Mock terminal IO streams so we can spec against them
def mock_terminal
@input = StringIO.new
@output = StringIO.new
- $terminal = HighLine.new @input, @output
+ HighLine.default_instance = HighLine.new(@input, @output)
end
# Create test command for usage within several specs
def create_test_command