actionpack-direct_routes 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +39 -0
  4. data/Rakefile +34 -0
  5. data/lib/action_dispatch/routing/direct_routes/mapper.rb +17 -0
  6. data/lib/action_dispatch/routing/direct_routes/mapper/scope.rb +15 -0
  7. data/lib/action_dispatch/routing/direct_routes/route_set.rb +89 -0
  8. data/lib/action_dispatch/routing/direct_routes/route_set/custom_url_helper.rb +39 -0
  9. data/lib/action_dispatch/routing/direct_routes/route_set/named_route_collection.rb +36 -0
  10. data/lib/actionpack/direct_routes.rb +15 -0
  11. data/lib/actionpack/direct_routes/version.rb +5 -0
  12. data/test/application/routing_test.rb +206 -0
  13. data/test/dummy/README.rdoc +28 -0
  14. data/test/dummy/Rakefile +6 -0
  15. data/test/dummy/app/assets/javascripts/application.js +13 -0
  16. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  17. data/test/dummy/app/controllers/application_controller.rb +5 -0
  18. data/test/dummy/app/helpers/application_helper.rb +2 -0
  19. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  20. data/test/dummy/bin/bundle +3 -0
  21. data/test/dummy/bin/rails +4 -0
  22. data/test/dummy/bin/rake +4 -0
  23. data/test/dummy/bin/setup +29 -0
  24. data/test/dummy/config.ru +4 -0
  25. data/test/dummy/config/application.rb +26 -0
  26. data/test/dummy/config/boot.rb +5 -0
  27. data/test/dummy/config/database.yml +25 -0
  28. data/test/dummy/config/environment.rb +5 -0
  29. data/test/dummy/config/environments/development.rb +41 -0
  30. data/test/dummy/config/environments/production.rb +79 -0
  31. data/test/dummy/config/environments/test.rb +42 -0
  32. data/test/dummy/config/initializers/assets.rb +11 -0
  33. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  34. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  35. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  36. data/test/dummy/config/initializers/inflections.rb +16 -0
  37. data/test/dummy/config/initializers/mime_types.rb +4 -0
  38. data/test/dummy/config/initializers/session_store.rb +3 -0
  39. data/test/dummy/config/initializers/to_time_preserves_timezone.rb +10 -0
  40. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  41. data/test/dummy/config/locales/en.yml +23 -0
  42. data/test/dummy/config/routes.rb +56 -0
  43. data/test/dummy/config/secrets.yml +22 -0
  44. data/test/dummy/db/test.sqlite3 +0 -0
  45. data/test/dummy/log/test.log +690 -0
  46. data/test/dummy/public/404.html +67 -0
  47. data/test/dummy/public/422.html +67 -0
  48. data/test/dummy/public/500.html +66 -0
  49. data/test/dummy/public/favicon.ico +0 -0
  50. data/test/integration/custom_url_helpers_test.rb +238 -0
  51. data/test/test_helper.rb +20 -0
  52. metadata +219 -0
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,56 @@
1
+ Rails.application.routes.draw do
2
+ # The priority is based upon order of creation: first created -> highest priority.
3
+ # See how all your routes lay out with "rake routes".
4
+
5
+ # You can have the root of your site routed with "root"
6
+ # root 'welcome#index'
7
+
8
+ # Example of regular route:
9
+ # get 'products/:id' => 'catalog#view'
10
+
11
+ # Example of named route that can be invoked with purchase_url(id: product.id)
12
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13
+
14
+ # Example resource route (maps HTTP verbs to controller actions automatically):
15
+ # resources :products
16
+
17
+ # Example resource route with options:
18
+ # resources :products do
19
+ # member do
20
+ # get 'short'
21
+ # post 'toggle'
22
+ # end
23
+ #
24
+ # collection do
25
+ # get 'sold'
26
+ # end
27
+ # end
28
+
29
+ # Example resource route with sub-resources:
30
+ # resources :products do
31
+ # resources :comments, :sales
32
+ # resource :seller
33
+ # end
34
+
35
+ # Example resource route with more complex sub-resources:
36
+ # resources :products do
37
+ # resources :comments
38
+ # resources :sales do
39
+ # get 'recent', on: :collection
40
+ # end
41
+ # end
42
+
43
+ # Example resource route with concerns:
44
+ # concern :toggleable do
45
+ # post 'toggle'
46
+ # end
47
+ # resources :posts, concerns: :toggleable
48
+ # resources :photos, concerns: :toggleable
49
+
50
+ # Example resource route within a namespace:
51
+ # namespace :admin do
52
+ # # Directs /admin/products/* to Admin::ProductsController
53
+ # # (app/controllers/admin/products_controller.rb)
54
+ # resources :products
55
+ # end
56
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: 6e25dd3c531b4a0d995ea6ba4077864d3cc2bf331e8105df630e0b5fb4b5e2acdc7bcd846e87f2ba858c936ef52838989f635159bec53f6c6798581894dd35cf
15
+
16
+ test:
17
+ secret_key_base: dae12dbec218b63c7806e1ecf11e003983288ee9fc26a5144a42c355ff9e85e5a5f1aee1cf40f6b467f86451675f9045107c5973b2e473a8ac5a7ba7695a555c
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
File without changes
@@ -0,0 +1,690 @@
1
+  (0.1ms) begin transaction
2
+ ------------------------------------------------------------------------------
3
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
4
+ ------------------------------------------------------------------------------
5
+  (0.1ms) rollback transaction
6
+  (0.2ms) begin transaction
7
+ ----------------------------------------------------------------------
8
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
9
+ ----------------------------------------------------------------------
10
+  (0.1ms) rollback transaction
11
+  (0.1ms) begin transaction
12
+ --------------------------------------
13
+ CustomUrlHelpersTest: test_direct_urls
14
+ --------------------------------------
15
+  (0.1ms) rollback transaction
16
+  (0.1ms) begin transaction
17
+ ---------------------------------------
18
+ CustomUrlHelpersTest: test_direct_paths
19
+ ---------------------------------------
20
+  (0.1ms) rollback transaction
21
+  (0.4ms) begin transaction
22
+ ---------------------------------------------------------
23
+ RoutingTest: test_named_routes_are_cleared_when_reloading
24
+ ---------------------------------------------------------
25
+  (0.4ms) begin transaction
26
+ -------------------------------------------------------------
27
+ RoutingTest: test_routes_are_added_and_removed_when_reloading
28
+ -------------------------------------------------------------
29
+  (0.1ms) rollback transaction
30
+  (0.1ms) rollback transaction
31
+  (0.1ms) begin transaction
32
+ ------------------------------------------------------------------------------
33
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
34
+ ------------------------------------------------------------------------------
35
+  (0.1ms) rollback transaction
36
+  (0.0ms) begin transaction
37
+ ---------------------------------------
38
+ CustomUrlHelpersTest: test_direct_paths
39
+ ---------------------------------------
40
+  (0.0ms) rollback transaction
41
+  (0.1ms) begin transaction
42
+ ----------------------------------------------------------------------
43
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
44
+ ----------------------------------------------------------------------
45
+  (0.2ms) rollback transaction
46
+  (0.3ms) begin transaction
47
+ --------------------------------------
48
+ CustomUrlHelpersTest: test_direct_urls
49
+ --------------------------------------
50
+  (0.1ms) rollback transaction
51
+  (0.1ms) begin transaction
52
+ ---------------------------------------
53
+ CustomUrlHelpersTest: test_direct_paths
54
+ ---------------------------------------
55
+  (0.1ms) rollback transaction
56
+  (0.1ms) begin transaction
57
+ ----------------------------------------------------------------------
58
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
59
+ ----------------------------------------------------------------------
60
+  (0.1ms) rollback transaction
61
+  (0.4ms) begin transaction
62
+ --------------------------------------
63
+ CustomUrlHelpersTest: test_direct_urls
64
+ --------------------------------------
65
+  (0.0ms) rollback transaction
66
+  (0.2ms) begin transaction
67
+ ------------------------------------------------------------------------------
68
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
69
+ ------------------------------------------------------------------------------
70
+  (0.1ms) rollback transaction
71
+  (0.2ms) begin transaction
72
+ ----------------------------------------------------------------------
73
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
74
+ ----------------------------------------------------------------------
75
+  (0.1ms) rollback transaction
76
+  (0.4ms) begin transaction
77
+ --------------------------------------
78
+ CustomUrlHelpersTest: test_direct_urls
79
+ --------------------------------------
80
+  (0.3ms) rollback transaction
81
+  (0.1ms) begin transaction
82
+ ---------------------------------------
83
+ CustomUrlHelpersTest: test_direct_paths
84
+ ---------------------------------------
85
+  (0.1ms) rollback transaction
86
+  (0.2ms) begin transaction
87
+ ------------------------------------------------------------------------------
88
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
89
+ ------------------------------------------------------------------------------
90
+  (0.0ms) rollback transaction
91
+  (0.1ms) begin transaction
92
+ ---------------------------------------
93
+ CustomUrlHelpersTest: test_direct_paths
94
+ ---------------------------------------
95
+  (0.1ms) rollback transaction
96
+  (0.1ms) begin transaction
97
+ --------------------------------------
98
+ CustomUrlHelpersTest: test_direct_urls
99
+ --------------------------------------
100
+  (0.0ms) rollback transaction
101
+  (0.4ms) begin transaction
102
+ ----------------------------------------------------------------------
103
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
104
+ ----------------------------------------------------------------------
105
+  (0.0ms) rollback transaction
106
+  (0.1ms) begin transaction
107
+ ------------------------------------------------------------------------------
108
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
109
+ ------------------------------------------------------------------------------
110
+  (0.1ms) rollback transaction
111
+  (0.1ms) begin transaction
112
+ ----------------------------------------------------------------------
113
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
114
+ ----------------------------------------------------------------------
115
+  (0.1ms) rollback transaction
116
+  (0.1ms) begin transaction
117
+ ---------------------------------------
118
+ CustomUrlHelpersTest: test_direct_paths
119
+ ---------------------------------------
120
+  (0.1ms) rollback transaction
121
+  (0.1ms) begin transaction
122
+ ------------------------------------------------------------------------------
123
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
124
+ ------------------------------------------------------------------------------
125
+  (0.2ms) rollback transaction
126
+  (0.1ms) begin transaction
127
+ --------------------------------------
128
+ CustomUrlHelpersTest: test_direct_urls
129
+ --------------------------------------
130
+  (0.4ms) rollback transaction
131
+  (0.1ms) begin transaction
132
+ ----------------------------------------------------------------------
133
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
134
+ ----------------------------------------------------------------------
135
+  (0.1ms) rollback transaction
136
+  (0.1ms) begin transaction
137
+ ------------------------------------------------------------------------------
138
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
139
+ ------------------------------------------------------------------------------
140
+  (0.1ms) rollback transaction
141
+  (0.1ms) begin transaction
142
+ --------------------------------------
143
+ CustomUrlHelpersTest: test_direct_urls
144
+ --------------------------------------
145
+  (0.2ms) rollback transaction
146
+  (0.1ms) begin transaction
147
+ ---------------------------------------
148
+ CustomUrlHelpersTest: test_direct_paths
149
+ ---------------------------------------
150
+  (0.1ms) rollback transaction
151
+  (0.1ms) begin transaction
152
+ ---------------------------------------
153
+ CustomUrlHelpersTest: test_direct_paths
154
+ ---------------------------------------
155
+  (0.1ms) rollback transaction
156
+  (0.1ms) begin transaction
157
+ ----------------------------------------------------------------------
158
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
159
+ ----------------------------------------------------------------------
160
+  (0.1ms) rollback transaction
161
+  (0.0ms) begin transaction
162
+ ------------------------------------------------------------------------------
163
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
164
+ ------------------------------------------------------------------------------
165
+  (0.1ms) rollback transaction
166
+  (0.0ms) begin transaction
167
+ --------------------------------------
168
+ CustomUrlHelpersTest: test_direct_urls
169
+ --------------------------------------
170
+  (0.1ms) rollback transaction
171
+  (0.1ms) begin transaction
172
+ ----------------------------------------------------------------------
173
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
174
+ ----------------------------------------------------------------------
175
+  (0.1ms) rollback transaction
176
+  (0.0ms) begin transaction
177
+ ---------------------------------------
178
+ CustomUrlHelpersTest: test_direct_paths
179
+ ---------------------------------------
180
+  (0.2ms) rollback transaction
181
+  (0.4ms) begin transaction
182
+ ------------------------------------------------------------------------------
183
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
184
+ ------------------------------------------------------------------------------
185
+  (0.1ms) rollback transaction
186
+  (0.1ms) begin transaction
187
+ --------------------------------------
188
+ CustomUrlHelpersTest: test_direct_urls
189
+ --------------------------------------
190
+  (0.1ms) rollback transaction
191
+  (0.2ms) begin transaction
192
+ ----------------------------------------------------------------------
193
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
194
+ ----------------------------------------------------------------------
195
+  (0.1ms) rollback transaction
196
+  (0.1ms) begin transaction
197
+ --------------------------------------
198
+ CustomUrlHelpersTest: test_direct_urls
199
+ --------------------------------------
200
+  (0.0ms) rollback transaction
201
+  (0.0ms) begin transaction
202
+ ------------------------------------------------------------------------------
203
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
204
+ ------------------------------------------------------------------------------
205
+  (0.0ms) rollback transaction
206
+  (0.0ms) begin transaction
207
+ ---------------------------------------
208
+ CustomUrlHelpersTest: test_direct_paths
209
+ ---------------------------------------
210
+  (0.0ms) rollback transaction
211
+  (0.2ms) begin transaction
212
+ ----------------------------------------------------------------------
213
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
214
+ ----------------------------------------------------------------------
215
+  (0.1ms) rollback transaction
216
+  (0.1ms) begin transaction
217
+ ------------------------------------------------------------------------------
218
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
219
+ ------------------------------------------------------------------------------
220
+  (0.0ms) rollback transaction
221
+  (0.0ms) begin transaction
222
+ ---------------------------------------
223
+ CustomUrlHelpersTest: test_direct_paths
224
+ ---------------------------------------
225
+  (0.1ms) rollback transaction
226
+  (0.1ms) begin transaction
227
+ --------------------------------------
228
+ CustomUrlHelpersTest: test_direct_urls
229
+ --------------------------------------
230
+  (0.1ms) rollback transaction
231
+  (0.1ms) begin transaction
232
+ --------------------------------------
233
+ CustomUrlHelpersTest: test_direct_urls
234
+ --------------------------------------
235
+  (0.1ms) rollback transaction
236
+  (0.1ms) begin transaction
237
+ ------------------------------------------------------------------------------
238
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
239
+ ------------------------------------------------------------------------------
240
+  (0.4ms) rollback transaction
241
+  (0.0ms) begin transaction
242
+ ----------------------------------------------------------------------
243
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
244
+ ----------------------------------------------------------------------
245
+  (0.1ms) rollback transaction
246
+  (0.1ms) begin transaction
247
+ ---------------------------------------
248
+ CustomUrlHelpersTest: test_direct_paths
249
+ ---------------------------------------
250
+  (0.1ms) rollback transaction
251
+  (0.1ms) begin transaction
252
+ --------------------------------------
253
+ CustomUrlHelpersTest: test_direct_urls
254
+ --------------------------------------
255
+  (0.3ms) rollback transaction
256
+  (0.0ms) begin transaction
257
+ ----------------------------------------------------------------------
258
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
259
+ ----------------------------------------------------------------------
260
+  (0.1ms) rollback transaction
261
+  (0.0ms) begin transaction
262
+ ------------------------------------------------------------------------------
263
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
264
+ ------------------------------------------------------------------------------
265
+  (0.0ms) rollback transaction
266
+  (0.0ms) begin transaction
267
+ ---------------------------------------
268
+ CustomUrlHelpersTest: test_direct_paths
269
+ ---------------------------------------
270
+  (0.1ms) rollback transaction
271
+  (0.1ms) begin transaction
272
+ ------------------------------------------------------------------------------
273
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
274
+ ------------------------------------------------------------------------------
275
+  (0.1ms) rollback transaction
276
+  (0.1ms) begin transaction
277
+ --------------------------------------
278
+ CustomUrlHelpersTest: test_direct_urls
279
+ --------------------------------------
280
+  (0.1ms) rollback transaction
281
+  (0.0ms) begin transaction
282
+ ----------------------------------------------------------------------
283
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
284
+ ----------------------------------------------------------------------
285
+  (0.0ms) rollback transaction
286
+  (0.0ms) begin transaction
287
+ ---------------------------------------
288
+ CustomUrlHelpersTest: test_direct_paths
289
+ ---------------------------------------
290
+  (0.6ms) rollback transaction
291
+  (0.1ms) begin transaction
292
+ ------------------------------------------------------------------------------
293
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
294
+ ------------------------------------------------------------------------------
295
+  (0.0ms) rollback transaction
296
+  (0.2ms) begin transaction
297
+ --------------------------------------
298
+ CustomUrlHelpersTest: test_direct_urls
299
+ --------------------------------------
300
+  (0.4ms) rollback transaction
301
+  (0.1ms) begin transaction
302
+ ----------------------------------------------------------------------
303
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
304
+ ----------------------------------------------------------------------
305
+  (0.1ms) rollback transaction
306
+  (0.0ms) begin transaction
307
+ ---------------------------------------
308
+ CustomUrlHelpersTest: test_direct_paths
309
+ ---------------------------------------
310
+  (0.0ms) rollback transaction
311
+  (0.1ms) begin transaction
312
+ --------------------------------------
313
+ CustomUrlHelpersTest: test_direct_urls
314
+ --------------------------------------
315
+  (0.0ms) rollback transaction
316
+  (0.1ms) begin transaction
317
+ ------------------------------------------------------------------------------
318
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
319
+ ------------------------------------------------------------------------------
320
+  (0.1ms) rollback transaction
321
+  (0.1ms) begin transaction
322
+ ---------------------------------------
323
+ CustomUrlHelpersTest: test_direct_paths
324
+ ---------------------------------------
325
+  (0.0ms) rollback transaction
326
+  (0.1ms) begin transaction
327
+ ----------------------------------------------------------------------
328
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
329
+ ----------------------------------------------------------------------
330
+  (0.1ms) rollback transaction
331
+  (0.1ms) begin transaction
332
+ ---------------------------------------
333
+ CustomUrlHelpersTest: test_direct_paths
334
+ ---------------------------------------
335
+  (0.1ms) rollback transaction
336
+  (0.0ms) begin transaction
337
+ --------------------------------------
338
+ CustomUrlHelpersTest: test_direct_urls
339
+ --------------------------------------
340
+  (0.0ms) rollback transaction
341
+  (0.0ms) begin transaction
342
+ ------------------------------------------------------------------------------
343
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
344
+ ------------------------------------------------------------------------------
345
+  (0.0ms) rollback transaction
346
+  (0.1ms) begin transaction
347
+ ----------------------------------------------------------------------
348
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
349
+ ----------------------------------------------------------------------
350
+  (0.0ms) rollback transaction
351
+  (0.1ms) begin transaction
352
+ ---------------------------------------
353
+ CustomUrlHelpersTest: test_direct_paths
354
+ ---------------------------------------
355
+  (0.1ms) rollback transaction
356
+  (0.1ms) begin transaction
357
+ ----------------------------------------------------------------------
358
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
359
+ ----------------------------------------------------------------------
360
+  (0.0ms) rollback transaction
361
+  (0.0ms) begin transaction
362
+ --------------------------------------
363
+ CustomUrlHelpersTest: test_direct_urls
364
+ --------------------------------------
365
+  (0.1ms) rollback transaction
366
+  (0.1ms) begin transaction
367
+ ------------------------------------------------------------------------------
368
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
369
+ ------------------------------------------------------------------------------
370
+  (0.1ms) rollback transaction
371
+  (0.3ms) begin transaction
372
+ ----------------------------------------------------------------------
373
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
374
+ ----------------------------------------------------------------------
375
+  (0.1ms) rollback transaction
376
+  (0.0ms) begin transaction
377
+ --------------------------------------
378
+ CustomUrlHelpersTest: test_direct_urls
379
+ --------------------------------------
380
+  (0.0ms) rollback transaction
381
+  (0.0ms) begin transaction
382
+ ------------------------------------------------------------------------------
383
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
384
+ ------------------------------------------------------------------------------
385
+  (0.1ms) rollback transaction
386
+  (0.0ms) begin transaction
387
+ ---------------------------------------
388
+ CustomUrlHelpersTest: test_direct_paths
389
+ ---------------------------------------
390
+  (0.1ms) rollback transaction
391
+  (0.2ms) begin transaction
392
+ --------------------------------------
393
+ CustomUrlHelpersTest: test_direct_urls
394
+ --------------------------------------
395
+  (0.1ms) rollback transaction
396
+  (0.1ms) begin transaction
397
+ ------------------------------------------------------------------------------
398
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
399
+ ------------------------------------------------------------------------------
400
+  (0.0ms) rollback transaction
401
+  (0.0ms) begin transaction
402
+ ----------------------------------------------------------------------
403
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
404
+ ----------------------------------------------------------------------
405
+  (0.1ms) rollback transaction
406
+  (0.1ms) begin transaction
407
+ ---------------------------------------
408
+ CustomUrlHelpersTest: test_direct_paths
409
+ ---------------------------------------
410
+  (0.1ms) rollback transaction
411
+  (0.2ms) begin transaction
412
+ --------------------------------------
413
+ CustomUrlHelpersTest: test_direct_urls
414
+ --------------------------------------
415
+  (0.1ms) rollback transaction
416
+  (0.0ms) begin transaction
417
+ ---------------------------------------
418
+ CustomUrlHelpersTest: test_direct_paths
419
+ ---------------------------------------
420
+  (0.0ms) rollback transaction
421
+  (0.0ms) begin transaction
422
+ ------------------------------------------------------------------------------
423
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
424
+ ------------------------------------------------------------------------------
425
+  (0.0ms) rollback transaction
426
+  (0.1ms) begin transaction
427
+ ----------------------------------------------------------------------
428
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
429
+ ----------------------------------------------------------------------
430
+  (0.1ms) rollback transaction
431
+  (0.1ms) begin transaction
432
+ ----------------------------------------------------------------------
433
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
434
+ ----------------------------------------------------------------------
435
+  (0.1ms) rollback transaction
436
+  (0.1ms) begin transaction
437
+ ---------------------------------------
438
+ CustomUrlHelpersTest: test_direct_paths
439
+ ---------------------------------------
440
+  (0.5ms) rollback transaction
441
+  (0.2ms) begin transaction
442
+ ------------------------------------------------------------------------------
443
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
444
+ ------------------------------------------------------------------------------
445
+  (0.1ms) rollback transaction
446
+  (0.1ms) begin transaction
447
+ --------------------------------------
448
+ CustomUrlHelpersTest: test_direct_urls
449
+ --------------------------------------
450
+  (0.1ms) rollback transaction
451
+  (0.1ms) begin transaction
452
+ --------------------------------------
453
+ CustomUrlHelpersTest: test_direct_urls
454
+ --------------------------------------
455
+  (0.2ms) rollback transaction
456
+  (0.0ms) begin transaction
457
+ ---------------------------------------
458
+ CustomUrlHelpersTest: test_direct_paths
459
+ ---------------------------------------
460
+  (0.0ms) rollback transaction
461
+  (0.1ms) begin transaction
462
+ ------------------------------------------------------------------------------
463
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
464
+ ------------------------------------------------------------------------------
465
+  (0.1ms) rollback transaction
466
+  (0.0ms) begin transaction
467
+ ----------------------------------------------------------------------
468
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
469
+ ----------------------------------------------------------------------
470
+  (0.1ms) rollback transaction
471
+  (0.1ms) begin transaction
472
+ ------------------------------------------------------------------------------
473
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
474
+ ------------------------------------------------------------------------------
475
+  (0.0ms) rollback transaction
476
+  (0.2ms) begin transaction
477
+ --------------------------------------
478
+ CustomUrlHelpersTest: test_direct_urls
479
+ --------------------------------------
480
+  (0.3ms) rollback transaction
481
+  (0.0ms) begin transaction
482
+ ----------------------------------------------------------------------
483
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
484
+ ----------------------------------------------------------------------
485
+  (0.2ms) rollback transaction
486
+  (0.2ms) begin transaction
487
+ ---------------------------------------
488
+ CustomUrlHelpersTest: test_direct_paths
489
+ ---------------------------------------
490
+  (0.1ms) rollback transaction
491
+  (0.1ms) begin transaction
492
+ ---------------------------------------
493
+ CustomUrlHelpersTest: test_direct_paths
494
+ ---------------------------------------
495
+  (0.1ms) rollback transaction
496
+  (0.1ms) begin transaction
497
+ ------------------------------------------------------------------------------
498
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
499
+ ------------------------------------------------------------------------------
500
+  (0.0ms) rollback transaction
501
+  (0.0ms) begin transaction
502
+ ----------------------------------------------------------------------
503
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
504
+ ----------------------------------------------------------------------
505
+  (0.1ms) rollback transaction
506
+  (0.1ms) begin transaction
507
+ --------------------------------------
508
+ CustomUrlHelpersTest: test_direct_urls
509
+ --------------------------------------
510
+  (0.1ms) rollback transaction
511
+  (0.1ms) begin transaction
512
+ ----------------------------------------------------------------------
513
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
514
+ ----------------------------------------------------------------------
515
+  (0.1ms) rollback transaction
516
+  (0.1ms) begin transaction
517
+ ---------------------------------------
518
+ CustomUrlHelpersTest: test_direct_paths
519
+ ---------------------------------------
520
+  (0.1ms) rollback transaction
521
+  (0.0ms) begin transaction
522
+ --------------------------------------
523
+ CustomUrlHelpersTest: test_direct_urls
524
+ --------------------------------------
525
+  (0.1ms) rollback transaction
526
+  (0.1ms) begin transaction
527
+ ------------------------------------------------------------------------------
528
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
529
+ ------------------------------------------------------------------------------
530
+  (0.1ms) rollback transaction
531
+  (0.1ms) begin transaction
532
+ ----------------------------------------------------------------------
533
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
534
+ ----------------------------------------------------------------------
535
+  (0.1ms) rollback transaction
536
+  (0.1ms) begin transaction
537
+ --------------------------------------
538
+ CustomUrlHelpersTest: test_direct_urls
539
+ --------------------------------------
540
+  (0.1ms) rollback transaction
541
+  (0.0ms) begin transaction
542
+ ------------------------------------------------------------------------------
543
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
544
+ ------------------------------------------------------------------------------
545
+  (0.0ms) rollback transaction
546
+  (0.0ms) begin transaction
547
+ ---------------------------------------
548
+ CustomUrlHelpersTest: test_direct_paths
549
+ ---------------------------------------
550
+  (0.1ms) rollback transaction
551
+  (0.1ms) begin transaction
552
+ ----------------------------------------------------------------------
553
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
554
+ ----------------------------------------------------------------------
555
+  (0.1ms) rollback transaction
556
+  (0.0ms) begin transaction
557
+ ------------------------------------------------------------------------------
558
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
559
+ ------------------------------------------------------------------------------
560
+  (0.0ms) rollback transaction
561
+  (0.0ms) begin transaction
562
+ ---------------------------------------
563
+ CustomUrlHelpersTest: test_direct_paths
564
+ ---------------------------------------
565
+  (0.1ms) rollback transaction
566
+  (0.0ms) begin transaction
567
+ --------------------------------------
568
+ CustomUrlHelpersTest: test_direct_urls
569
+ --------------------------------------
570
+  (0.1ms) rollback transaction
571
+  (0.2ms) begin transaction
572
+ ------------------------------------------------------------------------------
573
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
574
+ ------------------------------------------------------------------------------
575
+  (0.1ms) rollback transaction
576
+  (0.1ms) begin transaction
577
+ ---------------------------------------
578
+ CustomUrlHelpersTest: test_direct_paths
579
+ ---------------------------------------
580
+  (0.1ms) rollback transaction
581
+  (0.0ms) begin transaction
582
+ ----------------------------------------------------------------------
583
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
584
+ ----------------------------------------------------------------------
585
+  (0.1ms) rollback transaction
586
+  (0.0ms) begin transaction
587
+ --------------------------------------
588
+ CustomUrlHelpersTest: test_direct_urls
589
+ --------------------------------------
590
+  (0.1ms) rollback transaction
591
+  (0.1ms) begin transaction
592
+ ----------------------------------------------------------------------
593
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
594
+ ----------------------------------------------------------------------
595
+  (0.0ms) rollback transaction
596
+  (0.0ms) begin transaction
597
+ ---------------------------------------
598
+ CustomUrlHelpersTest: test_direct_paths
599
+ ---------------------------------------
600
+  (0.2ms) rollback transaction
601
+  (0.2ms) begin transaction
602
+ ------------------------------------------------------------------------------
603
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
604
+ ------------------------------------------------------------------------------
605
+  (0.1ms) rollback transaction
606
+  (0.0ms) begin transaction
607
+ --------------------------------------
608
+ CustomUrlHelpersTest: test_direct_urls
609
+ --------------------------------------
610
+  (0.3ms) rollback transaction
611
+  (0.1ms) begin transaction
612
+ --------------------------------------
613
+ CustomUrlHelpersTest: test_direct_urls
614
+ --------------------------------------
615
+  (0.1ms) rollback transaction
616
+  (0.1ms) begin transaction
617
+ ----------------------------------------------------------------------
618
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
619
+ ----------------------------------------------------------------------
620
+  (0.1ms) rollback transaction
621
+  (0.0ms) begin transaction
622
+ ---------------------------------------
623
+ CustomUrlHelpersTest: test_direct_paths
624
+ ---------------------------------------
625
+  (0.4ms) rollback transaction
626
+  (0.3ms) begin transaction
627
+ ------------------------------------------------------------------------------
628
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
629
+ ------------------------------------------------------------------------------
630
+  (0.3ms) rollback transaction
631
+  (0.1ms) begin transaction
632
+ --------------------------------------
633
+ CustomUrlHelpersTest: test_direct_urls
634
+ --------------------------------------
635
+  (0.1ms) rollback transaction
636
+  (0.3ms) begin transaction
637
+ ------------------------------------------------------------------------------
638
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
639
+ ------------------------------------------------------------------------------
640
+  (0.4ms) rollback transaction
641
+  (0.1ms) begin transaction
642
+ ----------------------------------------------------------------------
643
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
644
+ ----------------------------------------------------------------------
645
+  (0.1ms) rollback transaction
646
+  (0.1ms) begin transaction
647
+ ---------------------------------------
648
+ CustomUrlHelpersTest: test_direct_paths
649
+ ---------------------------------------
650
+  (0.1ms) rollback transaction
651
+  (0.1ms) begin transaction
652
+ ------------------------------------------------------------------------------
653
+ CustomUrlHelpersTest: test_defining_direct_inside_a_scope_raises_runtime_error
654
+ ------------------------------------------------------------------------------
655
+  (0.0ms) rollback transaction
656
+  (0.0ms) begin transaction
657
+ ----------------------------------------------------------------------
658
+ CustomUrlHelpersTest: test_defining_direct_url_registers_helper_method
659
+ ----------------------------------------------------------------------
660
+  (0.0ms) rollback transaction
661
+  (0.0ms) begin transaction
662
+ ---------------------------------------
663
+ CustomUrlHelpersTest: test_direct_paths
664
+ ---------------------------------------
665
+  (0.2ms) rollback transaction
666
+  (0.1ms) begin transaction
667
+ --------------------------------------
668
+ CustomUrlHelpersTest: test_direct_urls
669
+ --------------------------------------
670
+  (0.1ms) rollback transaction
671
+  (1.1ms) begin transaction
672
+ ----------------------------------------------------------------------------
673
+ RoutingTest: test_reloads_routes_when_configuration_is_changed_in_production
674
+ ----------------------------------------------------------------------------
675
+  (0.3ms) begin transaction
676
+ -----------------------------------------------------------------------------
677
+ RoutingTest: test_reloads_routes_when_configuration_is_changed_in_development
678
+ -----------------------------------------------------------------------------
679
+  (0.1ms) rollback transaction
680
+  (0.4ms) begin transaction
681
+ ---------------------------------------------------------
682
+ RoutingTest: test_named_routes_are_cleared_when_reloading
683
+ ---------------------------------------------------------
684
+  (0.1ms) rollback transaction
685
+  (0.1ms) rollback transaction
686
+  (0.3ms) begin transaction
687
+ -------------------------------------------------------------
688
+ RoutingTest: test_routes_are_added_and_removed_when_reloading
689
+ -------------------------------------------------------------
690
+  (0.1ms) rollback transaction