File tree Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 1
1
source 'https://rubygems.org'
2
2
gemspec
3
+
4
+ gem 'actionpack' , github : 'rails/rails' , branch : '5-0-stable'
5
+ gem 'actionview' , github : 'rails/rails' , branch : '5-0-stable'
6
+ gem 'activesupport' , github : 'rails/rails' , branch : '5-0-stable'
7
+ gem 'railties' , github : 'rails/rails' , branch : '5-0-stable'
Original file line number Diff line number Diff line change @@ -7,17 +7,19 @@ module Rails
7
7
module Controller
8
8
module Testing
9
9
def self . install
10
- ActiveSupport . on_load ( :action_controller ) do
11
- ActionController ::TestCase . include Rails ::Controller ::Testing ::TestProcess
12
- ActionController ::TestCase . include Rails ::Controller ::Testing ::TemplateAssertions
10
+ ActiveSupport . on_load ( :action_controller_test_case ) do
11
+ include Rails ::Controller ::Testing ::TestProcess
12
+ include Rails ::Controller ::Testing ::TemplateAssertions
13
+ end
13
14
14
- ActionDispatch ::IntegrationTest . include Rails ::Controller ::Testing ::TemplateAssertions
15
- ActionDispatch ::IntegrationTest . include Rails ::Controller ::Testing ::Integration
16
- ActionDispatch ::IntegrationTest . include Rails ::Controller ::Testing ::TestProcess
15
+ ActiveSupport . on_load ( :action_dispatch_integration_test ) do
16
+ include Rails ::Controller ::Testing ::TemplateAssertions
17
+ include Rails ::Controller ::Testing ::Integration
18
+ include Rails ::Controller ::Testing ::TestProcess
17
19
end
18
20
19
- ActiveSupport . on_load ( :action_view ) do
20
- ActionView :: TestCase . include Rails ::Controller ::Testing ::TemplateAssertions
21
+ ActiveSupport . on_load ( :action_view_test_case ) do
22
+ include Rails ::Controller ::Testing ::TemplateAssertions
21
23
end
22
24
end
23
25
end
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ Gem::Specification.new do |s|
18
18
19
19
s . required_ruby_version = '>= 2.2.2'
20
20
21
- s . add_dependency "actionpack" , "~> 5.x"
22
- s . add_dependency "actionview" , "~> 5.x"
21
+ s . add_dependency "actionpack" , "~> 5.x" # TODO: require 5.0.1 to get the test case hook
22
+ s . add_dependency "actionview" , "~> 5.x" # TODO: require 5.0.1 to get the test case hook
23
23
s . add_dependency "activesupport" , "~> 5.x"
24
24
25
25
s . add_development_dependency "railties" , "~> 5.x"
You can’t perform that action at this time.
0 commit comments