From a21e18d5080a2c4808330271885f5664a725d3f3 Mon Sep 17 00:00:00 2001 From: eileencodes Date: Tue, 4 Oct 2016 08:48:21 -0400 Subject: Appease Rubocop Rubocop / code climate don't like single quotes and prefer doubles. --- actionpack/lib/system_test_case.rb | 4 ++-- actionpack/lib/system_testing/driver_adapter.rb | 2 +- actionpack/lib/system_testing/driver_adapters/capybara_driver.rb | 2 +- .../lib/system_testing/driver_adapters/rails_selenium_driver.rb | 2 +- actionpack/lib/system_testing/driver_adapters/web_server.rb | 2 +- actionpack/lib/system_testing/railtie.rb | 2 +- actionpack/lib/system_testing/test_helper.rb | 4 ++-- actionpack/lib/system_testing/test_helpers/form_helper.rb | 2 +- actionpack/lib/system_testing/test_helpers/screenshot_helper.rb | 5 ++--- 9 files changed, 12 insertions(+), 13 deletions(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/system_test_case.rb b/actionpack/lib/system_test_case.rb index 196798495f..373cb4f0d0 100644 --- a/actionpack/lib/system_test_case.rb +++ b/actionpack/lib/system_test_case.rb @@ -1,5 +1,5 @@ -require 'system_testing/test_helper' -require 'system_testing/driver_adapter' +require "system_testing/test_helper" +require "system_testing/driver_adapter" module Rails # System tests are similar to Integration tests in that they incorporate multiple diff --git a/actionpack/lib/system_testing/driver_adapter.rb b/actionpack/lib/system_testing/driver_adapter.rb index 3d8545f3c6..ccd702e967 100644 --- a/actionpack/lib/system_testing/driver_adapter.rb +++ b/actionpack/lib/system_testing/driver_adapter.rb @@ -1,4 +1,4 @@ -require 'system_testing/driver_adapters' +require "system_testing/driver_adapters" module SystemTesting # The SystemTesting::DriverAdapter module is used to load the driver diff --git a/actionpack/lib/system_testing/driver_adapters/capybara_driver.rb b/actionpack/lib/system_testing/driver_adapters/capybara_driver.rb index 487c2b3b88..7755b9616a 100644 --- a/actionpack/lib/system_testing/driver_adapters/capybara_driver.rb +++ b/actionpack/lib/system_testing/driver_adapters/capybara_driver.rb @@ -1,4 +1,4 @@ -require 'system_testing/driver_adapters/web_server' +require "system_testing/driver_adapters/web_server" module SystemTesting module DriverAdapters diff --git a/actionpack/lib/system_testing/driver_adapters/rails_selenium_driver.rb b/actionpack/lib/system_testing/driver_adapters/rails_selenium_driver.rb index 0e8fc00871..aa67ba8029 100644 --- a/actionpack/lib/system_testing/driver_adapters/rails_selenium_driver.rb +++ b/actionpack/lib/system_testing/driver_adapters/rails_selenium_driver.rb @@ -1,4 +1,4 @@ -require 'system_testing/driver_adapters/web_server' +require "system_testing/driver_adapters/web_server" module SystemTesting module DriverAdapters diff --git a/actionpack/lib/system_testing/driver_adapters/web_server.rb b/actionpack/lib/system_testing/driver_adapters/web_server.rb index 85bcaed8b2..65d719d1ab 100644 --- a/actionpack/lib/system_testing/driver_adapters/web_server.rb +++ b/actionpack/lib/system_testing/driver_adapters/web_server.rb @@ -26,7 +26,7 @@ module SystemTesting end def register_puma(app, port) - Rack::Handler::Puma.run(app, Port: port, Threads: '0:4') + Rack::Handler::Puma.run(app, Port: port, Threads: "0:4") end def register_webrick(app, port) diff --git a/actionpack/lib/system_testing/railtie.rb b/actionpack/lib/system_testing/railtie.rb index 459a8e9623..d8af69e5d3 100644 --- a/actionpack/lib/system_testing/railtie.rb +++ b/actionpack/lib/system_testing/railtie.rb @@ -1,4 +1,4 @@ -require 'system_test_case' +require "system_test_case" module SystemTesting # = System Testing Railtie diff --git a/actionpack/lib/system_testing/test_helper.rb b/actionpack/lib/system_testing/test_helper.rb index 0ca4f792cb..8bd49b2f4c 100644 --- a/actionpack/lib/system_testing/test_helper.rb +++ b/actionpack/lib/system_testing/test_helper.rb @@ -1,5 +1,5 @@ -require 'capybara/dsl' -require 'system_testing/test_helpers' +require "capybara/dsl" +require "system_testing/test_helpers" module SystemTesting module TestHelper # :nodoc: diff --git a/actionpack/lib/system_testing/test_helpers/form_helper.rb b/actionpack/lib/system_testing/test_helpers/form_helper.rb index 4789694bbb..74a1516116 100644 --- a/actionpack/lib/system_testing/test_helpers/form_helper.rb +++ b/actionpack/lib/system_testing/test_helpers/form_helper.rb @@ -50,7 +50,7 @@ module SystemTesting find(:field, name, visible: :all, checked: checked) end - def find_label_wrapper(field, location: './ancestor::label') + def find_label_wrapper(field, location: "./ancestor::label") field.find :xpath, location end end diff --git a/actionpack/lib/system_testing/test_helpers/screenshot_helper.rb b/actionpack/lib/system_testing/test_helpers/screenshot_helper.rb index a74ebb8cae..eeade229df 100644 --- a/actionpack/lib/system_testing/test_helpers/screenshot_helper.rb +++ b/actionpack/lib/system_testing/test_helpers/screenshot_helper.rb @@ -30,7 +30,7 @@ module SystemTesting end def find_image - if ENV['CAPYBARA_INLINE_SCREENSHOT'] == 'artifact' + if ENV["CAPYBARA_INLINE_SCREENSHOT"] == "artifact" "\e]1338;url=artifact://#{image_path}\a" else name = inline_base64(File.basename(image_path)) @@ -40,9 +40,8 @@ module SystemTesting end def inline_base64(path) - Base64.encode64(path).gsub("\n",'') + Base64.encode64(path).gsub("\n", "") end end end end - -- cgit v1.2.3