From fc85909f71a312555e6592c3dff3849be730331d Mon Sep 17 00:00:00 2001 From: Alex Rodionov Date: Tue, 25 Sep 2018 18:48:19 +0600 Subject: [PATCH] Ignore the case when RUBY_ENGINE is undefined This happened on MRI 1.8 which we no longer support --- rb/lib/selenium/webdriver/common/platform.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rb/lib/selenium/webdriver/common/platform.rb b/rb/lib/selenium/webdriver/common/platform.rb index 0cc995acf9bc1..4596e266c25e3 100644 --- a/rb/lib/selenium/webdriver/common/platform.rb +++ b/rb/lib/selenium/webdriver/common/platform.rb @@ -30,7 +30,7 @@ def home end def engine - @engine ||= defined?(RUBY_ENGINE) ? RUBY_ENGINE.to_sym : :ruby + @engine ||= RUBY_ENGINE.to_sym end def os