rails-controller-testing 0.0.3 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,4 @@
1
1
  require 'test_helper'
2
- require 'rails-controller-testing'
3
2
 
4
3
  class RenderTemplateTest < ActionView::TestCase
5
4
  test "supports specifying templates with a Regexp" do
data/test/test_helper.rb CHANGED
@@ -2,7 +2,6 @@
2
2
  ENV["RAILS_ENV"] = "test"
3
3
 
4
4
  require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
5
- ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
6
5
  require "rails/test_help"
7
6
  require 'rails-controller-testing'
8
7
 
metadata CHANGED
@@ -1,29 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-controller-testing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
- - Alan Guo Xiang Tan
7
+ - Rails Core Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-28 00:00:00.000000000 Z
11
+ date: 2017-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: actionpack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 5.x
17
20
  - - ">="
18
21
  - !ruby/object:Gem::Version
19
- version: '4.2'
22
+ version: 5.0.1
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: 5.x
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 5.0.1
33
+ - !ruby/object:Gem::Dependency
34
+ name: actionview
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: 5.x
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 5.0.1
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: 5.x
24
50
  - - ">="
25
51
  - !ruby/object:Gem::Version
26
- version: '4.2'
52
+ version: 5.0.1
53
+ - !ruby/object:Gem::Dependency
54
+ name: activesupport
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: 5.x
60
+ type: :runtime
61
+ prerelease: false
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: 5.x
67
+ - !ruby/object:Gem::Dependency
68
+ name: railties
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: 5.x
74
+ type: :development
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: 5.x
27
81
  - !ruby/object:Gem::Dependency
28
82
  name: sqlite3
29
83
  requirement: !ruby/object:Gem::Requirement
@@ -39,16 +93,18 @@ dependencies:
39
93
  - !ruby/object:Gem::Version
40
94
  version: '0'
41
95
  description:
42
- email:
43
- - tgx_world@hotmail.com
96
+ email:
44
97
  executables: []
45
98
  extensions: []
46
99
  extra_rdoc_files: []
47
100
  files:
101
+ - LICENSE
48
102
  - README.md
49
103
  - Rakefile
50
104
  - lib/rails-controller-testing.rb
105
+ - lib/rails/controller/testing.rb
51
106
  - lib/rails/controller/testing/integration.rb
107
+ - lib/rails/controller/testing/railtie.rb
52
108
  - lib/rails/controller/testing/template_assertions.rb
53
109
  - lib/rails/controller/testing/test_process.rb
54
110
  - lib/rails/controller/testing/version.rb
@@ -56,8 +112,6 @@ files:
56
112
  - test/controllers/template_assertions_test.rb
57
113
  - test/dummy/README.rdoc
58
114
  - test/dummy/Rakefile
59
- - test/dummy/app/assets/javascripts/application.js
60
- - test/dummy/app/assets/stylesheets/application.css
61
115
  - test/dummy/app/controllers/assigns_controller.rb
62
116
  - test/dummy/app/controllers/template_assertions_controller.rb
63
117
  - test/dummy/app/controllers/view_assigns_controller.rb
@@ -97,7 +151,6 @@ files:
97
151
  - test/dummy/config/locales/en.yml
98
152
  - test/dummy/config/routes.rb
99
153
  - test/dummy/config/secrets.yml
100
- - test/dummy/db/test.sqlite3
101
154
  - test/dummy/log/test.log
102
155
  - test/dummy/public/404.html
103
156
  - test/dummy/public/422.html
@@ -106,7 +159,7 @@ files:
106
159
  - test/helpers/template_assertions_test.rb
107
160
  - test/integration/template_assertions_test.rb
108
161
  - test/test_helper.rb
109
- homepage: https://github.com/tgxworld/rails-controller-testing
162
+ homepage: https://github.com/rails/rails-controller-testing
110
163
  licenses:
111
164
  - MIT
112
165
  metadata: {}
@@ -118,7 +171,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
118
171
  requirements:
119
172
  - - ">="
120
173
  - !ruby/object:Gem::Version
121
- version: '0'
174
+ version: 2.2.2
122
175
  required_rubygems_version: !ruby/object:Gem::Requirement
123
176
  requirements:
124
177
  - - ">="
@@ -126,63 +179,59 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
179
  version: '0'
127
180
  requirements: []
128
181
  rubyforge_project:
129
- rubygems_version: 2.4.5
182
+ rubygems_version: 2.6.11
130
183
  signing_key:
131
184
  specification_version: 4
132
185
  summary: Extracting `assigns` and `assert_template` from ActionDispatch.
133
186
  test_files:
134
- - test/dummy/public/422.html
135
- - test/dummy/public/500.html
136
- - test/dummy/public/404.html
137
- - test/dummy/public/favicon.ico
138
- - test/dummy/log/test.log
139
- - test/dummy/config.ru
187
+ - test/controllers/assigns_test.rb
188
+ - test/controllers/template_assertions_test.rb
189
+ - test/dummy/app/controllers/assigns_controller.rb
190
+ - test/dummy/app/controllers/template_assertions_controller.rb
191
+ - test/dummy/app/controllers/view_assigns_controller.rb
192
+ - test/dummy/app/helpers/application_helper.rb
193
+ - test/dummy/app/views/layouts/application.html.erb
194
+ - test/dummy/app/views/layouts/standard.html.erb
195
+ - test/dummy/app/views/test/_directory/_partial_with_locales.html.erb
196
+ - test/dummy/app/views/test/_layout_for_partial.html.erb
197
+ - test/dummy/app/views/test/_partial.html.erb
198
+ - test/dummy/app/views/test/_partial_for_use_in_layout.html.erb
199
+ - test/dummy/app/views/test/calling_partial_with_layout.html.erb
200
+ - test/dummy/app/views/test/hello/hello.html.erb
201
+ - test/dummy/app/views/test/hello_world.html.erb
202
+ - test/dummy/app/views/test/hello_world_with_partial.html.erb
203
+ - test/dummy/app/views/test/render_partial_inside_directory.html.erb
204
+ - test/dummy/app/views/test/render_two_partials.html.erb
205
+ - test/dummy/bin/bundle
206
+ - test/dummy/bin/rails
207
+ - test/dummy/bin/rake
208
+ - test/dummy/bin/setup
209
+ - test/dummy/config/application.rb
140
210
  - test/dummy/config/boot.rb
141
- - test/dummy/config/initializers/cookies_serializer.rb
142
- - test/dummy/config/initializers/backtrace_silencers.rb
211
+ - test/dummy/config/database.yml
212
+ - test/dummy/config/environment.rb
213
+ - test/dummy/config/environments/development.rb
214
+ - test/dummy/config/environments/production.rb
215
+ - test/dummy/config/environments/test.rb
143
216
  - test/dummy/config/initializers/assets.rb
144
- - test/dummy/config/initializers/session_store.rb
145
- - test/dummy/config/initializers/wrap_parameters.rb
146
- - test/dummy/config/initializers/mime_types.rb
217
+ - test/dummy/config/initializers/backtrace_silencers.rb
218
+ - test/dummy/config/initializers/cookies_serializer.rb
147
219
  - test/dummy/config/initializers/filter_parameter_logging.rb
148
220
  - test/dummy/config/initializers/inflections.rb
149
- - test/dummy/config/environments/production.rb
150
- - test/dummy/config/environments/development.rb
151
- - test/dummy/config/environments/test.rb
152
- - test/dummy/config/environment.rb
221
+ - test/dummy/config/initializers/mime_types.rb
222
+ - test/dummy/config/initializers/session_store.rb
223
+ - test/dummy/config/initializers/wrap_parameters.rb
224
+ - test/dummy/config/locales/en.yml
153
225
  - test/dummy/config/routes.rb
154
- - test/dummy/config/database.yml
155
- - test/dummy/config/application.rb
156
226
  - test/dummy/config/secrets.yml
157
- - test/dummy/config/locales/en.yml
158
- - test/dummy/db/test.sqlite3
227
+ - test/dummy/config.ru
228
+ - test/dummy/log/test.log
229
+ - test/dummy/public/404.html
230
+ - test/dummy/public/422.html
231
+ - test/dummy/public/500.html
232
+ - test/dummy/public/favicon.ico
159
233
  - test/dummy/Rakefile
160
- - test/dummy/app/assets/stylesheets/application.css
161
- - test/dummy/app/assets/javascripts/application.js
162
- - test/dummy/app/views/test/_partial_for_use_in_layout.html.erb
163
- - test/dummy/app/views/test/render_partial_inside_directory.html.erb
164
- - test/dummy/app/views/test/hello_world_with_partial.html.erb
165
- - test/dummy/app/views/test/render_two_partials.html.erb
166
- - test/dummy/app/views/test/_layout_for_partial.html.erb
167
- - test/dummy/app/views/test/calling_partial_with_layout.html.erb
168
- - test/dummy/app/views/test/hello_world.html.erb
169
- - test/dummy/app/views/test/_directory/_partial_with_locales.html.erb
170
- - test/dummy/app/views/test/_partial.html.erb
171
- - test/dummy/app/views/test/hello/hello.html.erb
172
- - test/dummy/app/views/layouts/application.html.erb
173
- - test/dummy/app/views/layouts/standard.html.erb
174
- - test/dummy/app/controllers/template_assertions_controller.rb
175
- - test/dummy/app/controllers/view_assigns_controller.rb
176
- - test/dummy/app/controllers/assigns_controller.rb
177
- - test/dummy/app/helpers/application_helper.rb
178
- - test/dummy/bin/rails
179
- - test/dummy/bin/setup
180
- - test/dummy/bin/rake
181
- - test/dummy/bin/bundle
182
234
  - test/dummy/README.rdoc
183
- - test/test_helper.rb
184
- - test/controllers/assigns_test.rb
185
- - test/controllers/template_assertions_test.rb
186
235
  - test/helpers/template_assertions_test.rb
187
236
  - test/integration/template_assertions_test.rb
188
- has_rdoc:
237
+ - test/test_helper.rb
@@ -1,13 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file.
9
- //
10
- // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require_tree .
@@ -1,15 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
- * file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
File without changes