Skip to content

Commit

Permalink
Always use color.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Mar 2, 2014
1 parent eec1f5b commit e9aa71e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ def run(reporter=nil)
end
end

def in_editor?
ENV.has_key?('TM_MODE') || ENV.has_key?('EMACS') || ENV.has_key?('VIM')
end

module EnvHelpers
def with_env_vars(vars)
original = ENV.to_hash
Expand Down Expand Up @@ -135,7 +131,7 @@ def without_env_vars(*vars)
end

# runtime options
c.color = !in_editor?
c.color = true
c.include EnvHelpers
c.filter_run_excluding :ruby => lambda {|version|
case version.to_s
Expand Down

0 comments on commit e9aa71e

Please sign in to comment.