Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 0044ceb

Browse files
don't warn if ANSICON not installed on windows; just set the value of color
1 parent b2b5af2 commit 0044ceb

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/rspec/core/configuration.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -711,15 +711,7 @@ def color_enabled?(output=output_stream)
711711
# @attr true_or_false [Boolean] toggle color enabled
712712
def color=(true_or_false)
713713
return unless true_or_false
714-
715-
if RSpec::Support::OS.windows? && !ENV['ANSICON']
716-
RSpec.warning "You must use ANSICON 1.31 or later " \
717-
"(http://adoxa.3eeweb.com/ansicon/) to use colour " \
718-
"on Windows"
719-
@color = false
720-
else
721-
@color = true
722-
end
714+
@color = !!true_or_false
723715
end
724716

725717
# @private

0 commit comments

Comments
 (0)