diff --git a/test/dummy/app/controllers/counters_controller.rb b/test/dummy/app/controllers/counters_controller.rb index 5e9bdba98..2d4296db4 100644 --- a/test/dummy/app/controllers/counters_controller.rb +++ b/test/dummy/app/controllers/counters_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class CountersController < ApplicationController def index @counters = [{ name: "Counter 1" }] diff --git a/test/dummy/config/routes.rb b/test/dummy/config/routes.rb index 6fdeabe75..0c308456b 100644 --- a/test/dummy/config/routes.rb +++ b/test/dummy/config/routes.rb @@ -3,7 +3,7 @@ Dummy::Application.routes.draw do get "no-turbolinks", to: "pages#no_turbolinks" resources :pages, only: [:show] - resources :counters, only: [:create, :index] + resources :counters, only: %i[create index] resources :server, only: [:show] do collection do get :console_example diff --git a/test/react/rails/realtime_update_test.rb b/test/react/rails/realtime_update_test.rb index 99d2c1967..6c7f94e70 100644 --- a/test/react/rails/realtime_update_test.rb +++ b/test/react/rails/realtime_update_test.rb @@ -28,10 +28,9 @@ def assert_counter_count(page, timer_name, count) assert_counter_count(page, "Counter 1", 0) page.click_button "Increment Counter 1" - assert_counter_count(page, "Counter 1", 1) - page.click_button "Add counter" sleep 0.1 + assert_counter_count(page, "Counter 1", 1) assert_counter_count(page, "Counter 2", 0) end