Skip to content

Commit 2285824

Browse files
committed
Ruby: actiondispatch test whitespace changes
1 parent 4644f08 commit 2285824

File tree

3 files changed

+36
-32
lines changed

3 files changed

+36
-32
lines changed

ruby/ql/test/library-tests/frameworks/action_dispatch/ActionDispatch.expected

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
actionDispatchRoutes
2-
| app/config/routes.rb:2:3:8:5 | call to resources | get | posts | posts | index |
3-
| app/config/routes.rb:2:3:8:5 | call to resources | get | posts/:id | posts | show |
2+
| app/config/routes.rb:2:3:9:5 | call to resources | get | posts | posts | index |
3+
| app/config/routes.rb:2:3:9:5 | call to resources | get | posts/:id | posts | show |
44
| app/config/routes.rb:3:5:6:7 | call to resources | delete | posts/:post_id/comments/:id | comments | destroy |
55
| app/config/routes.rb:3:5:6:7 | call to resources | get | posts/:post_id/comments | comments | index |
66
| app/config/routes.rb:3:5:6:7 | call to resources | get | posts/:post_id/comments/:id | comments | show |
@@ -12,38 +12,38 @@ actionDispatchRoutes
1212
| app/config/routes.rb:4:7:4:41 | call to resources | post | posts/:post_id/comments/:comment_id/replies | replies | create |
1313
| app/config/routes.rb:5:7:5:28 | call to post | post | posts/:post_id/comments/:comment_id/flag | comments | flag |
1414
| app/config/routes.rb:7:5:7:37 | call to post | post | posts/:post_id/upvote | posts | upvote |
15-
| app/config/routes.rb:11:5:11:54 | call to post | post | destroy_all_posts | posts | destroy_alll |
16-
| app/config/routes.rb:15:5:15:46 | call to get | get | numbers/:number | numbers | show |
17-
| app/config/routes.rb:19:5:19:44 | call to get | get | admin/jobs | background_jobs | index |
18-
| app/config/routes.rb:23:5:23:64 | call to get | get | admin/secrets | secrets | view_secrets |
19-
| app/config/routes.rb:24:5:24:42 | call to delete | delete | admin/:user_id | users | destroy |
20-
| app/config/routes.rb:27:3:27:48 | call to match | get | photos/:id | photos | show |
21-
| app/config/routes.rb:28:3:28:50 | call to match | get | photos/:id | photos | show |
22-
| app/config/routes.rb:29:3:29:69 | call to match | get | photos/:id | photos | show |
23-
| app/config/routes.rb:30:3:30:50 | call to match | delete | photos/:id | photos | show |
24-
| app/config/routes.rb:30:3:30:50 | call to match | get | photos/:id | photos | show |
25-
| app/config/routes.rb:30:3:30:50 | call to match | patch | photos/:id | photos | show |
26-
| app/config/routes.rb:30:3:30:50 | call to match | post | photos/:id | photos | show |
27-
| app/config/routes.rb:30:3:30:50 | call to match | put | photos/:id | photos | show |
28-
| app/config/routes.rb:33:5:33:43 | call to post | post | upgrade | users | start_upgrade |
29-
| app/config/routes.rb:37:5:37:31 | call to get | get | current_billing_cycle | billing/enterprise | current_billing_cycle |
30-
| app/config/routes.rb:40:3:40:40 | call to resource | get | global_config | global_config | show |
31-
| app/config/routes.rb:43:5:45:7 | call to resources | get | foo/bar | foo/bar | index |
32-
| app/config/routes.rb:43:5:45:7 | call to resources | get | foo/bar/:id | foo/bar | show |
33-
| app/config/routes.rb:44:7:44:39 | call to get | get | foo/bar/:bar_id/show_debug | foo/bar | show_debug |
34-
| app/config/routes.rb:49:5:49:95 | call to delete | delete | users/:user/notifications | users/notifications | destroy |
35-
| app/config/routes.rb:50:5:50:94 | call to post | post | users/:user/notifications/:notification_id/mark_as_read | users/notifications | mark_as_read |
15+
| app/config/routes.rb:12:5:12:54 | call to post | post | destroy_all_posts | posts | destroy_alll |
16+
| app/config/routes.rb:16:5:16:46 | call to get | get | numbers/:number | numbers | show |
17+
| app/config/routes.rb:20:5:20:44 | call to get | get | admin/jobs | background_jobs | index |
18+
| app/config/routes.rb:24:5:24:64 | call to get | get | admin/secrets | secrets | view_secrets |
19+
| app/config/routes.rb:25:5:25:42 | call to delete | delete | admin/:user_id | users | destroy |
20+
| app/config/routes.rb:28:3:28:48 | call to match | get | photos/:id | photos | show |
21+
| app/config/routes.rb:29:3:29:50 | call to match | get | photos/:id | photos | show |
22+
| app/config/routes.rb:30:3:30:69 | call to match | get | photos/:id | photos | show |
23+
| app/config/routes.rb:31:3:31:50 | call to match | delete | photos/:id | photos | show |
24+
| app/config/routes.rb:31:3:31:50 | call to match | get | photos/:id | photos | show |
25+
| app/config/routes.rb:31:3:31:50 | call to match | patch | photos/:id | photos | show |
26+
| app/config/routes.rb:31:3:31:50 | call to match | post | photos/:id | photos | show |
27+
| app/config/routes.rb:31:3:31:50 | call to match | put | photos/:id | photos | show |
28+
| app/config/routes.rb:34:5:34:43 | call to post | post | upgrade | users | start_upgrade |
29+
| app/config/routes.rb:38:5:38:31 | call to get | get | current_billing_cycle | billing/enterprise | current_billing_cycle |
30+
| app/config/routes.rb:41:3:41:40 | call to resource | get | global_config | global_config | show |
31+
| app/config/routes.rb:44:5:46:7 | call to resources | get | foo/bar | foo/bar | index |
32+
| app/config/routes.rb:44:5:46:7 | call to resources | get | foo/bar/:id | foo/bar | show |
33+
| app/config/routes.rb:45:7:45:39 | call to get | get | foo/bar/:bar_id/show_debug | foo/bar | show_debug |
34+
| app/config/routes.rb:50:5:50:95 | call to delete | delete | users/:user/notifications | users/notifications | destroy |
35+
| app/config/routes.rb:51:5:51:94 | call to post | post | users/:user/notifications/:notification_id/mark_as_read | users/notifications | mark_as_read |
3636
actionDispatchControllerMethods
37-
| app/config/routes.rb:2:3:8:5 | call to resources | app/controllers/posts_controller.rb:2:3:3:5 | index |
38-
| app/config/routes.rb:2:3:8:5 | call to resources | app/controllers/posts_controller.rb:5:3:6:5 | show |
37+
| app/config/routes.rb:2:3:9:5 | call to resources | app/controllers/posts_controller.rb:2:3:3:5 | index |
38+
| app/config/routes.rb:2:3:9:5 | call to resources | app/controllers/posts_controller.rb:5:3:6:5 | show |
3939
| app/config/routes.rb:3:5:6:7 | call to resources | app/controllers/comments_controller.rb:2:3:39:5 | index |
4040
| app/config/routes.rb:3:5:6:7 | call to resources | app/controllers/comments_controller.rb:41:3:42:5 | show |
4141
| app/config/routes.rb:7:5:7:37 | call to post | app/controllers/posts_controller.rb:8:3:9:5 | upvote |
42-
| app/config/routes.rb:27:3:27:48 | call to match | app/controllers/photos_controller.rb:2:3:3:5 | show |
43-
| app/config/routes.rb:28:3:28:50 | call to match | app/controllers/photos_controller.rb:2:3:3:5 | show |
44-
| app/config/routes.rb:29:3:29:69 | call to match | app/controllers/photos_controller.rb:2:3:3:5 | show |
45-
| app/config/routes.rb:30:3:30:50 | call to match | app/controllers/photos_controller.rb:2:3:3:5 | show |
46-
| app/config/routes.rb:50:5:50:94 | call to post | app/controllers/users/notifications_controller.rb:3:5:4:7 | mark_as_read |
42+
| app/config/routes.rb:28:3:28:48 | call to match | app/controllers/photos_controller.rb:2:3:3:5 | show |
43+
| app/config/routes.rb:29:3:29:50 | call to match | app/controllers/photos_controller.rb:2:3:3:5 | show |
44+
| app/config/routes.rb:30:3:30:69 | call to match | app/controllers/photos_controller.rb:2:3:3:5 | show |
45+
| app/config/routes.rb:31:3:31:50 | call to match | app/controllers/photos_controller.rb:2:3:3:5 | show |
46+
| app/config/routes.rb:51:5:51:94 | call to post | app/controllers/users/notifications_controller.rb:3:5:4:7 | mark_as_read |
4747
underscore
4848
| Foo | foo |
4949
| Foo::Bar | foo/bar |

ruby/ql/test/library-tests/frameworks/action_dispatch/app/config/routes.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
post "flag", to: :flag
66
end
77
post "upvote", to: "posts#upvote"
8+
# post "downvote" => "posts#downvote"
89
end
910

1011
if Rails.env.test?

ruby/ql/test/library-tests/frameworks/action_dispatch/app/controllers/posts_controller.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ def index
44

55
def show
66
end
7-
7+
88
def upvote
99
end
10-
end
10+
11+
# def downvote
12+
# end
13+
end

0 commit comments

Comments
 (0)