Use RbConfig instead of deprecated Config in specs

RbConfig works on Ruby >=1.8.5 (i.e. everywhere), and Config is deprecated
as of Ruby 1.9.3.
This commit is contained in:
Jo Liss 2012-01-21 15:48:04 +01:00
parent edd4283edf
commit 756ec1b2af
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ describe Capybara::Selenium::Driver do
it_should_behave_like "driver with cookies support"
it_should_behave_like "driver with referer support"
unless Config::CONFIG['host_os'] =~ /mswin|mingw/
unless RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
it "should not interfere with forking child processes" do
# Launch a browser, which registers the at_exit hook
browser = Capybara::Selenium::Driver.new(TestApp).browser