From d4e11e62cf395d325ec219eb3779e38cbf15cac8 Mon Sep 17 00:00:00 2001 From: "Nate Hopkins (hopsoft)" Date: Wed, 12 Jun 2024 09:35:58 -0600 Subject: [PATCH] Remove unused method --- lib/turbo_boost/commands/token_validator.rb | 5 ----- test/application_system_test_case.rb | 6 +++--- turbo_boost-commands.gemspec | 2 +- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/lib/turbo_boost/commands/token_validator.rb b/lib/turbo_boost/commands/token_validator.rb index 97fc96c4..46cd28ad 100644 --- a/lib/turbo_boost/commands/token_validator.rb +++ b/lib/turbo_boost/commands/token_validator.rb @@ -47,9 +47,4 @@ def valid_token?(token) # TODO: Update to use Rails' public API controller.send :valid_authenticity_token?, session, token end - - def token_name - Rails.application.config.action_controller.request_forgery_protection_token || - ActionController::RequestForgeryProtection::CSRF_TOKEN - end end diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index 72e21a1f..7c64fc82 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -1,11 +1,11 @@ # frozen_string_literal: true +require "capybara-playwright-driver" require "timeout" require "test_helper" -require "capybara-playwright-driver" -Capybara.default_max_wait_time = 60 -Capybara.default_retry_interval = 10 +Capybara.default_max_wait_time = 10 +Capybara.default_retry_interval = 2 Capybara.default_normalize_ws = true Capybara.save_path = "tmp/capybara" diff --git a/turbo_boost-commands.gemspec b/turbo_boost-commands.gemspec index b02bb154..3c709d72 100644 --- a/turbo_boost-commands.gemspec +++ b/turbo_boost-commands.gemspec @@ -21,11 +21,11 @@ Gem::Specification.new do |s| s.required_ruby_version = ">= 3.0" s.add_dependency "device_detector", ">= 1.0" + s.add_dependency "observer" s.add_dependency "rails", ">= 6.1" s.add_dependency "turbo-rails", ">= 1.1" s.add_dependency "turbo_boost-streams", ">= 0.1.11" s.add_dependency "universalid", ">= 0.1.7" - s.add_dependency "observer" s.add_development_dependency "amazing_print" s.add_development_dependency "capybara"