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
53
53
end
54
54
55
55
group :test do
56
- platforms *( @windows_platforms + [ :ruby ] ) do
56
+ platforms ( *( @windows_platforms + [ :ruby ] ) ) do
57
57
if version == 'master' || version >= '6'
58
58
gem 'sqlite3' , '~> 1.4'
59
59
else
@@ -71,7 +71,7 @@ group :test do
71
71
gem 'm' , '~> 1.5'
72
72
gem 'pry' , '>= 0.10'
73
73
gem 'byebug' , '~> 8.2' if RUBY_VERSION < '2.2'
74
- gem 'pry-byebug' , platform : :ruby
74
+ gem 'pry-byebug' , platforms : :ruby
75
75
end
76
76
77
77
group :development , :test do
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
require File . expand_path ( [ '..' , 'app' ] . join ( File ::SEPARATOR ) , __FILE__ )
2
4
3
5
run Rails . application
Original file line number Diff line number Diff line change 2
2
3
3
if RUBY_VERSION >= '2.6.0'
4
4
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
11
13
end
12
14
end
13
15
else
14
- puts " Monkeypatch for ActionController::TestResponse no longer needed"
16
+ puts ' Monkeypatch for ActionController::TestResponse no longer needed'
15
17
end
16
18
end
You can’t perform that action at this time.
0 commit comments