diff options
Diffstat (limited to 'actionpack/lib/system_testing/test_helpers')
-rw-r--r-- | actionpack/lib/system_testing/test_helpers/form_helper.rb | 2 | ||||
-rw-r--r-- | actionpack/lib/system_testing/test_helpers/screenshot_helper.rb | 5 |
2 files changed, 3 insertions, 4 deletions
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 - |