Skip to content

Commit 5ece31c

Browse files
committed
wip
1 parent d5fdd16 commit 5ece31c

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

Diff for: Appraisals

+2-4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ appraise 'sprockets_4' do
44
gem 'sprockets-rails'
55
gem 'turbolinks', '~> 5'
66
gem 'mini_racer', :platforms => :mri
7+
gem 'turbo-rails'
78
end
89

910
appraise 'sprockets_3' do
@@ -12,6 +13,7 @@ appraise 'sprockets_3' do
1213
gem 'sprockets-rails'
1314
gem 'turbolinks', '~> 5'
1415
gem 'mini_racer', :platforms => :mri
16+
gem 'turbo-rails'
1517
end
1618

1719
appraise 'shakapacker' do
@@ -21,9 +23,5 @@ appraise 'shakapacker' do
2123
end
2224

2325
appraise 'base' do
24-
# Appraisal adds `turbolinks` to this gemfile because it is
25-
# present in `./Gemfile`.
26-
# But it causes this gemfile to break, so it must be removed
27-
# from `./gemfiles/rails_5_no_sprockets.gemfile` manually.
2826
gem 'rails', '~> 7.0.x'
2927
end

Diff for: 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" }]

Diff for: 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

Diff for: test/react/rails/realtime_update_test.rb

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class RealtimeUpdateTest < ActiveSupport::TestCase
99
def assert_counter_count(page, timer_name, count)
1010
assert page.has_content?("#{timer_name} - #{count}"), <<~MSG
1111
#{page.body}
12-
#{page.driver.browser.logs.get(:browser).inspect}
12+
#{page.driver.browser.manage.logs.get(:browser).inspect}
1313
MSG
1414
end
1515

@@ -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)