From dfb09558be926995a75b990cfde3f84a8db0d536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDeljko=20Filipin?= Date: Wed, 14 Dec 2016 16:22:36 +0100 Subject: [PATCH] Fix NameError: uninitialized constant MediawikiSelenium::RakeTask::Shellwords Rake used to require Shellwords, but since v11.2.0 no longer does so. For more information see https://github.com/ruby/rake/pull/131/ Bug: T153202 Change-Id: I2f741e62654a8ef9e6b84f591cc4b0f164e465f9 --- lib/mediawiki_selenium/rake_task.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mediawiki_selenium/rake_task.rb b/lib/mediawiki_selenium/rake_task.rb index 32c5b46..aa108c1 100644 --- a/lib/mediawiki_selenium/rake_task.rb +++ b/lib/mediawiki_selenium/rake_task.rb @@ -12,6 +12,7 @@ def initialize(name: :selenium, test_dir: Environment.default_test_directory, si site = URI.parse(env.lookup(:mediawiki_url)).host browser_tags = env.browser_tags.map { |tag| "@#{tag}" }.join(',') + require 'shellwords' options = Shellwords.escape(test_dir) if workspace