Permalink
Browse files

Use RbConfig instead of Config, prevent warning on 1.9.3

  • Loading branch information...
1 parent ced7b20 commit 06f8ed6da248b5f168d0dd41dbd6c7830d38b907 @jyurek jyurek committed Sep 2, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/cocaine/command_line.rb
  2. +1 −1 spec/support/stub_os.rb
@@ -91,7 +91,7 @@ def bit_bucket
end
def self.unix?
- (Config::CONFIG['host_os'] =~ /mswin|mingw/).nil?
+ (RbConfig::CONFIG['host_os'] =~ /mswin|mingw/).nil?
end
end
end
@@ -9,6 +9,6 @@ def on_unix!(host_string = 'darwin11.0.0')
def stub_os(host_string)
# http://blog.emptyway.com/2009/11/03/proper-way-to-detect-windows-platform-in-ruby/
- Config::CONFIG.stubs(:[]).with('host_os').returns(host_string)
+ RbConfig::CONFIG.stubs(:[]).with('host_os').returns(host_string)
end
end

0 comments on commit 06f8ed6

Please sign in to comment.