Permalink
Browse files

require 'rbconfig' in Configuration

Closes #38.
  • Loading branch information...
1 parent cb09092 commit bed699bf362c248d3231e21c37f086eef6e16512 @dchelimsky dchelimsky committed Jun 15, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/rspec/core/configuration.rb
@@ -1,3 +1,5 @@
+require "rbconfig"
+
module RSpec
module Core
class Configuration
@@ -123,7 +125,7 @@ def full_backtrace=(bool)
def color_enabled=(bool)
return unless bool
settings[:color_enabled] = true
- if bool && Config::CONFIG['host_os'] =~ /mswin|mingw/
+ if bool && ::Config::CONFIG['host_os'] =~ /mswin|mingw/
orig_output_stream = settings[:output_stream]
begin
require 'Win32/Console/ANSI'

0 comments on commit bed699b

Please sign in to comment.