Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Judahmeek committed Apr 12, 2024
1 parent aa61f16 commit 167918f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions test/dummy/app/controllers/counters_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class CountersController < ApplicationController
def index
@counters = [{ name: "Counter 1" }]
Expand Down
2 changes: 1 addition & 1 deletion test/dummy/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions test/react/rails/realtime_update_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 167918f

Please sign in to comment.