File tree Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ group :bench do
5353end
5454
5555group :test do
56- platforms *( @windows_platforms + [ :ruby ] ) do
56+ platforms ( *( @windows_platforms + [ :ruby ] ) ) do
5757 if version == 'master' || version >= '6'
5858 gem 'sqlite3' , '~> 1.4'
5959 else
@@ -71,7 +71,7 @@ group :test do
7171 gem 'm' , '~> 1.5'
7272 gem 'pry' , '>= 0.10'
7373 gem 'byebug' , '~> 8.2' if RUBY_VERSION < '2.2'
74- gem 'pry-byebug' , platform : :ruby
74+ gem 'pry-byebug' , platforms : :ruby
7575end
7676
7777group :development , :test do
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
13require File . expand_path ( [ '..' , 'app' ] . join ( File ::SEPARATOR ) , __FILE__ )
24
35run Rails . application
Original file line number Diff line number Diff line change 22
33if RUBY_VERSION >= '2.6.0'
44 if Rails ::VERSION ::MAJOR < 5
5- class ActionController ::TestResponse < ActionDispatch ::TestResponse
6- def recycle!
7- # hack to avoid MonitorMixin double-initialize error:
8- @mon_mutex_owner_object_id = nil
9- @mon_mutex = nil
10- initialize
5+ module ActionController
6+ class TestResponse < ActionDispatch ::TestResponse
7+ def recycle!
8+ # HACK: to avoid MonitorMixin double-initialize error:
9+ @mon_mutex_owner_object_id = nil
10+ @mon_mutex = nil
11+ initialize
12+ end
1113 end
1214 end
1315 else
14- puts " Monkeypatch for ActionController::TestResponse no longer needed"
16+ puts ' Monkeypatch for ActionController::TestResponse no longer needed'
1517 end
1618end
You can’t perform that action at this time.
0 commit comments