Skip to content

Commit 167918f

Browse files
committed
linting
1 parent aa61f16 commit 167918f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

test/dummy/app/controllers/counters_controller.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
class CountersController < ApplicationController
24
def index
35
@counters = [{ name: "Counter 1" }]

test/dummy/config/routes.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Dummy::Application.routes.draw do
44
get "no-turbolinks", to: "pages#no_turbolinks"
55
resources :pages, only: [:show]
6-
resources :counters, only: [:create, :index]
6+
resources :counters, only: %i[create index]
77
resources :server, only: [:show] do
88
collection do
99
get :console_example

test/react/rails/realtime_update_test.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ def assert_counter_count(page, timer_name, count)
2828

2929
assert_counter_count(page, "Counter 1", 0)
3030
page.click_button "Increment Counter 1"
31-
assert_counter_count(page, "Counter 1", 1)
32-
3331
page.click_button "Add counter"
3432
sleep 0.1
33+
3534
assert_counter_count(page, "Counter 1", 1)
3635
assert_counter_count(page, "Counter 2", 0)
3736
end

0 commit comments

Comments
 (0)