Permalink
Browse files

Appease Rubocop

Rubocop / code climate don't like single quotes and prefer doubles.
  • Loading branch information...
eileencodes committed Oct 4, 2016
1 parent c83e6d3 commit a21e18d5080a2c4808330271885f5664a725d3f3
@@ -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
@@ -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
@@ -1,4 +1,4 @@
-require 'system_testing/driver_adapters/web_server'
+require "system_testing/driver_adapters/web_server"
module SystemTesting
module DriverAdapters
@@ -1,4 +1,4 @@
-require 'system_testing/driver_adapters/web_server'
+require "system_testing/driver_adapters/web_server"
module SystemTesting
module DriverAdapters
@@ -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)
@@ -1,4 +1,4 @@
-require 'system_test_case'
+require "system_test_case"
module SystemTesting
# = System Testing Railtie
@@ -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:
@@ -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
@@ -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))
@@ -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
-
@@ -1,4 +1,4 @@
-require 'abstract_unit'
+require "abstract_unit"
class CapybaraDriverTest < ActiveSupport::TestCase
def setup
@@ -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
@@ -1,4 +1,4 @@
-require 'abstract_unit'
+require "abstract_unit"
class RailsSeleniumDriverTest < ActiveSupport::TestCase
def setup
@@ -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
@@ -1,4 +1,4 @@
-require 'abstract_unit'
+require "abstract_unit"
class ScreenshotHelperTest < ActiveSupport::TestCase
def test_driver_support_for_screenshots
@@ -1,4 +1,4 @@
-require 'rails/generators/test_unit'
+require "rails/generators/test_unit"
module TestUnit # :nodoc:
module Generators # :nodoc:
@@ -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"

0 comments on commit a21e18d

Please sign in to comment.