Permalink
Browse files

Merge pull request #332 from jtharris/highline_fix

Always use color for mock highline.
  • Loading branch information...
2 parents 26aef6d + a064f10 commit 730766636ffa24e3655a622a240b71e4c7441655 @danmcp danmcp committed Mar 14, 2013
Showing with 7 additions and 2 deletions.
  1. +7 −2 spec/spec_helper.rb
View
@@ -189,6 +189,11 @@ def new_command_runner *args, &block
end
class MockHighLineTerminal < HighLine
+
+ def self.use_color?
+ true
+ end
+
def initialize(input, output)
super
@last_read_pos = 0
@@ -363,8 +368,8 @@ module CommanderInvocationMatchers
end
description do
"expect block to invoke '#{method}' on #{@object} with #{@args}"
- end
- end
+ end
+ end
end
module ColorMatchers

0 comments on commit 7307666

Please sign in to comment.