Skip to content

Commit

Permalink
Appease Rubocop
Browse files Browse the repository at this point in the history
Rubocop / code climate don't like single quotes and prefer doubles.
  • Loading branch information
eileencodes committed Feb 20, 2017
1 parent c83e6d3 commit a21e18d
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 21 deletions.
4 changes: 2 additions & 2 deletions 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
Expand Down
2 changes: 1 addition & 1 deletion actionpack/lib/system_testing/driver_adapter.rb
@@ -1,4 +1,4 @@
require 'system_testing/driver_adapters'
require "system_testing/driver_adapters"

module SystemTesting
# The <tt>SystemTesting::DriverAdapter</tt> module is used to load the driver
Expand Down
@@ -1,4 +1,4 @@
require 'system_testing/driver_adapters/web_server'
require "system_testing/driver_adapters/web_server"

module SystemTesting
module DriverAdapters
Expand Down
@@ -1,4 +1,4 @@
require 'system_testing/driver_adapters/web_server'
require "system_testing/driver_adapters/web_server"

module SystemTesting
module DriverAdapters
Expand Down
Expand Up @@ -26,7 +26,7 @@ def register_default(app, port)
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)
Expand Down
2 changes: 1 addition & 1 deletion actionpack/lib/system_testing/railtie.rb
@@ -1,4 +1,4 @@
require 'system_test_case'
require "system_test_case"

module SystemTesting
# = System Testing Railtie
Expand Down
4 changes: 2 additions & 2 deletions 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:
Expand Down
2 changes: 1 addition & 1 deletion actionpack/lib/system_testing/test_helpers/form_helper.rb
Expand Up @@ -50,7 +50,7 @@ def find_checkbox(name, checked)
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
Expand Down
Expand Up @@ -30,7 +30,7 @@ def image_path
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))
Expand All @@ -40,9 +40,8 @@ def find_image
end

def inline_base64(path)
Base64.encode64(path).gsub("\n",'')
Base64.encode64(path).gsub("\n", "")
end
end
end
end

2 changes: 1 addition & 1 deletion actionpack/test/system_testing/capybara_driver_test.rb
@@ -1,4 +1,4 @@
require 'abstract_unit'
require "abstract_unit"

class CapybaraDriverTest < ActiveSupport::TestCase
def setup
Expand Down
4 changes: 2 additions & 2 deletions actionpack/test/system_testing/driver_adapter_test.rb
@@ -1,7 +1,7 @@
require 'abstract_unit'
require "abstract_unit"

class DriverAdapterTest < ActiveSupport::TestCase
test 'only registered adapters are accepted' do
test "only registered adapters are accepted" do
assert_raises(NameError) do
Rails::SystemTestCase.driver = :whatever
end
Expand Down
4 changes: 2 additions & 2 deletions actionpack/test/system_testing/rails_selenium_driver_test.rb
@@ -1,4 +1,4 @@
require 'abstract_unit'
require "abstract_unit"

class RailsSeleniumDriverTest < ActiveSupport::TestCase
def setup
Expand Down Expand Up @@ -51,7 +51,7 @@ def test_setting_screen_size
def test_does_not_accept_nonsense_kwargs
assert_raises ArgumentError do
Rails::SystemTestCase.driver = SystemTesting::DriverAdapters::RailsSeleniumDriver.new(
made_up_arg: 'x'
made_up_arg: "x"
)
end
end
Expand Down
2 changes: 1 addition & 1 deletion actionpack/test/system_testing/screenshot_helper_test.rb
@@ -1,4 +1,4 @@
require 'abstract_unit'
require "abstract_unit"

class ScreenshotHelperTest < ActiveSupport::TestCase
def test_driver_support_for_screenshots
Expand Down
@@ -1,4 +1,4 @@
require 'rails/generators/test_unit'
require "rails/generators/test_unit"

module TestUnit # :nodoc:
module Generators # :nodoc:
Expand Down
2 changes: 1 addition & 1 deletion railties/lib/rails/test_help.rb
Expand Up @@ -7,7 +7,7 @@
require "action_controller"
require "action_controller/test_case"
require "action_dispatch/testing/integration"
require 'system_test_case'
require "system_test_case"
require "rails/generators/test_case"

require "active_support/testing/autorun"
Expand Down

0 comments on commit a21e18d

Please sign in to comment.