@@ -243,6 +243,10 @@ class Rails::Command::RoutesTest < ActiveSupport::TestCase
243
243
run_routes_command ( [ "--expanded" ] )
244
244
end
245
245
246
+ # Normalize the output
247
+ output . gsub! ( /\. rb:\d +$/ , ".rb:XX" )
248
+ output . gsub! ( / \( [\d .]+\) / , " (X.X.X) " )
249
+
246
250
rails_gem_root = File . expand_path ( "../../../../" , __FILE__ )
247
251
248
252
# rubocop:disable Layout/TrailingWhitespace
@@ -252,151 +256,151 @@ class Rails::Command::RoutesTest < ActiveSupport::TestCase
252
256
Verb |
253
257
URI | /assets
254
258
Controller#Action | Propshaft::Server
255
- Source Location | propshaft (1.0.0 ) lib/propshaft/railtie.rb:43
259
+ Source Location | propshaft (X.X.X ) lib/propshaft/railtie.rb:XX
256
260
--[ Route 2 ]--------------
257
261
Prefix | cart
258
262
Verb | GET
259
263
URI | /cart(.:format)
260
264
Controller#Action | cart#show
261
- Source Location | #{ app_path } /config/routes.rb:2
265
+ Source Location | #{ app_path } /config/routes.rb:XX
262
266
--[ Route 3 ]--------------
263
267
Prefix | rails_postmark_inbound_emails
264
268
Verb | POST
265
269
URI | /rails/action_mailbox/postmark/inbound_emails(.:format)
266
270
Controller#Action | action_mailbox/ingresses/postmark/inbound_emails#create
267
- Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:5
271
+ Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:XX
268
272
--[ Route 4 ]--------------
269
273
Prefix | rails_relay_inbound_emails
270
274
Verb | POST
271
275
URI | /rails/action_mailbox/relay/inbound_emails(.:format)
272
276
Controller#Action | action_mailbox/ingresses/relay/inbound_emails#create
273
- Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:6
277
+ Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:XX
274
278
--[ Route 5 ]--------------
275
279
Prefix | rails_sendgrid_inbound_emails
276
280
Verb | POST
277
281
URI | /rails/action_mailbox/sendgrid/inbound_emails(.:format)
278
282
Controller#Action | action_mailbox/ingresses/sendgrid/inbound_emails#create
279
- Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:7
283
+ Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:XX
280
284
--[ Route 6 ]--------------
281
285
Prefix | rails_mandrill_inbound_health_check
282
286
Verb | GET
283
287
URI | /rails/action_mailbox/mandrill/inbound_emails(.:format)
284
288
Controller#Action | action_mailbox/ingresses/mandrill/inbound_emails#health_check
285
- Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:10
289
+ Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:XX
286
290
--[ Route 7 ]--------------
287
291
Prefix | rails_mandrill_inbound_emails
288
292
Verb | POST
289
293
URI | /rails/action_mailbox/mandrill/inbound_emails(.:format)
290
294
Controller#Action | action_mailbox/ingresses/mandrill/inbound_emails#create
291
- Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:11
295
+ Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:XX
292
296
--[ Route 8 ]--------------
293
297
Prefix | rails_mailgun_inbound_emails
294
298
Verb | POST
295
299
URI | /rails/action_mailbox/mailgun/inbound_emails/mime(.:format)
296
300
Controller#Action | action_mailbox/ingresses/mailgun/inbound_emails#create
297
- Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:14
301
+ Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:XX
298
302
--[ Route 9 ]--------------
299
303
Prefix | rails_conductor_inbound_emails
300
304
Verb | GET
301
305
URI | /rails/conductor/action_mailbox/inbound_emails(.:format)
302
306
Controller#Action | rails/conductor/action_mailbox/inbound_emails#index
303
- Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:19
307
+ Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:XX
304
308
--[ Route 10 ]-------------
305
309
Prefix |#{ " " }
306
310
Verb | POST
307
311
URI | /rails/conductor/action_mailbox/inbound_emails(.:format)
308
312
Controller#Action | rails/conductor/action_mailbox/inbound_emails#create
309
- Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:19
313
+ Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:XX
310
314
--[ Route 11 ]-------------
311
315
Prefix | new_rails_conductor_inbound_email
312
316
Verb | GET
313
317
URI | /rails/conductor/action_mailbox/inbound_emails/new(.:format)
314
318
Controller#Action | rails/conductor/action_mailbox/inbound_emails#new
315
- Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:19
319
+ Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:XX
316
320
--[ Route 12 ]-------------
317
321
Prefix | rails_conductor_inbound_email
318
322
Verb | GET
319
323
URI | /rails/conductor/action_mailbox/inbound_emails/:id(.:format)
320
324
Controller#Action | rails/conductor/action_mailbox/inbound_emails#show
321
- Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:19
325
+ Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:XX
322
326
--[ Route 13 ]-------------
323
327
Prefix | new_rails_conductor_inbound_email_source
324
328
Verb | GET
325
329
URI | /rails/conductor/action_mailbox/inbound_emails/sources/new(.:format)
326
330
Controller#Action | rails/conductor/action_mailbox/inbound_emails/sources#new
327
- Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:20
331
+ Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:XX
328
332
--[ Route 14 ]-------------
329
333
Prefix | rails_conductor_inbound_email_sources
330
334
Verb | POST
331
335
URI | /rails/conductor/action_mailbox/inbound_emails/sources(.:format)
332
336
Controller#Action | rails/conductor/action_mailbox/inbound_emails/sources#create
333
- Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:21
337
+ Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:XX
334
338
--[ Route 15 ]-------------
335
339
Prefix | rails_conductor_inbound_email_reroute
336
340
Verb | POST
337
341
URI | /rails/conductor/action_mailbox/:inbound_email_id/reroute(.:format)
338
342
Controller#Action | rails/conductor/action_mailbox/reroutes#create
339
- Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:23
343
+ Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:XX
340
344
--[ Route 16 ]-------------
341
345
Prefix | rails_conductor_inbound_email_incinerate
342
346
Verb | POST
343
347
URI | /rails/conductor/action_mailbox/:inbound_email_id/incinerate(.:format)
344
348
Controller#Action | rails/conductor/action_mailbox/incinerates#create
345
- Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:24
349
+ Source Location | #{ rails_gem_root } /actionmailbox/config/routes.rb:XX
346
350
--[ Route 17 ]-------------
347
351
Prefix | rails_service_blob
348
352
Verb | GET
349
353
URI | /rails/active_storage/blobs/redirect/:signed_id/*filename(.:format)
350
354
Controller#Action | active_storage/blobs/redirect#show
351
- Source Location | #{ rails_gem_root } /activestorage/config/routes.rb:5
355
+ Source Location | #{ rails_gem_root } /activestorage/config/routes.rb:XX
352
356
--[ Route 18 ]-------------
353
357
Prefix | rails_service_blob_proxy
354
358
Verb | GET
355
359
URI | /rails/active_storage/blobs/proxy/:signed_id/*filename(.:format)
356
360
Controller#Action | active_storage/blobs/proxy#show
357
- Source Location | #{ rails_gem_root } /activestorage/config/routes.rb:6
361
+ Source Location | #{ rails_gem_root } /activestorage/config/routes.rb:XX
358
362
--[ Route 19 ]-------------
359
363
Prefix |#{ " " }
360
364
Verb | GET
361
365
URI | /rails/active_storage/blobs/:signed_id/*filename(.:format)
362
366
Controller#Action | active_storage/blobs/redirect#show
363
- Source Location | #{ rails_gem_root } /activestorage/config/routes.rb:7
367
+ Source Location | #{ rails_gem_root } /activestorage/config/routes.rb:XX
364
368
--[ Route 20 ]-------------
365
369
Prefix | rails_blob_representation
366
370
Verb | GET
367
371
URI | /rails/active_storage/representations/redirect/:signed_blob_id/:variation_key/*filename(.:format)
368
372
Controller#Action | active_storage/representations/redirect#show
369
- Source Location | #{ rails_gem_root } /activestorage/config/routes.rb:9
373
+ Source Location | #{ rails_gem_root } /activestorage/config/routes.rb:XX
370
374
--[ Route 21 ]-------------
371
375
Prefix | rails_blob_representation_proxy
372
376
Verb | GET
373
377
URI | /rails/active_storage/representations/proxy/:signed_blob_id/:variation_key/*filename(.:format)
374
378
Controller#Action | active_storage/representations/proxy#show
375
- Source Location | #{ rails_gem_root } /activestorage/config/routes.rb:10
379
+ Source Location | #{ rails_gem_root } /activestorage/config/routes.rb:XX
376
380
--[ Route 22 ]-------------
377
381
Prefix |#{ " " }
378
382
Verb | GET
379
383
URI | /rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format)
380
384
Controller#Action | active_storage/representations/redirect#show
381
- Source Location | #{ rails_gem_root } /activestorage/config/routes.rb:11
385
+ Source Location | #{ rails_gem_root } /activestorage/config/routes.rb:XX
382
386
--[ Route 23 ]-------------
383
387
Prefix | rails_disk_service
384
388
Verb | GET
385
389
URI | /rails/active_storage/disk/:encoded_key/*filename(.:format)
386
390
Controller#Action | active_storage/disk#show
387
- Source Location | #{ rails_gem_root } /activestorage/config/routes.rb:13
391
+ Source Location | #{ rails_gem_root } /activestorage/config/routes.rb:XX
388
392
--[ Route 24 ]-------------
389
393
Prefix | update_rails_disk_service
390
394
Verb | PUT
391
395
URI | /rails/active_storage/disk/:encoded_token(.:format)
392
396
Controller#Action | active_storage/disk#update
393
- Source Location | #{ rails_gem_root } /activestorage/config/routes.rb:14
397
+ Source Location | #{ rails_gem_root } /activestorage/config/routes.rb:XX
394
398
--[ Route 25 ]-------------
395
399
Prefix | rails_direct_uploads
396
400
Verb | POST
397
401
URI | /rails/active_storage/direct_uploads(.:format)
398
402
Controller#Action | active_storage/direct_uploads#create
399
- Source Location | #{ rails_gem_root } /activestorage/config/routes.rb:15
403
+ Source Location | #{ rails_gem_root } /activestorage/config/routes.rb:XX
400
404
MESSAGE
401
405
# rubocop:enable Layout/TrailingWhitespace
402
406
end
0 commit comments