@@ -18,37 +18,37 @@ def test_routing_posts_show
1818 end
1919
2020 def test_routing_posts_links_author_show
21- assert_routing ( { path : '/posts/1/links /author' , method : :get } ,
21+ assert_routing ( { path : '/posts/1/relationships /author' , method : :get } ,
2222 { controller : 'posts' , action : 'show_association' , post_id : '1' , association : 'author' } )
2323 end
2424
2525 def test_routing_posts_links_author_destroy
26- assert_routing ( { path : '/posts/1/links /author' , method : :delete } ,
26+ assert_routing ( { path : '/posts/1/relationships /author' , method : :delete } ,
2727 { controller : 'posts' , action : 'destroy_association' , post_id : '1' , association : 'author' } )
2828 end
2929
3030 def test_routing_posts_links_author_update
31- assert_routing ( { path : '/posts/1/links /author' , method : :patch } ,
31+ assert_routing ( { path : '/posts/1/relationships /author' , method : :patch } ,
3232 { controller : 'posts' , action : 'update_association' , post_id : '1' , association : 'author' } )
3333 end
3434
3535 def test_routing_posts_links_tags_show
36- assert_routing ( { path : '/posts/1/links /tags' , method : :get } ,
36+ assert_routing ( { path : '/posts/1/relationships /tags' , method : :get } ,
3737 { controller : 'posts' , action : 'show_association' , post_id : '1' , association : 'tags' } )
3838 end
3939
4040 def test_routing_posts_links_tags_destroy
41- assert_routing ( { path : '/posts/1/links /tags/1,2' , method : :delete } ,
41+ assert_routing ( { path : '/posts/1/relationships /tags/1,2' , method : :delete } ,
4242 { controller : 'posts' , action : 'destroy_association' , post_id : '1' , keys : '1,2' , association : 'tags' } )
4343 end
4444
4545 def test_routing_posts_links_tags_create
46- assert_routing ( { path : '/posts/1/links /tags' , method : :post } ,
46+ assert_routing ( { path : '/posts/1/relationships /tags' , method : :post } ,
4747 { controller : 'posts' , action : 'create_association' , post_id : '1' , association : 'tags' } )
4848 end
4949
5050 def test_routing_posts_links_tags_update_acts_as_set
51- assert_routing ( { path : '/posts/1/links /tags' , method : :patch } ,
51+ assert_routing ( { path : '/posts/1/relationships /tags' , method : :patch } ,
5252 { controller : 'posts' , action : 'update_association' , post_id : '1' , association : 'tags' } )
5353 end
5454
@@ -64,13 +64,13 @@ def test_routing_v1_posts_delete
6464 end
6565
6666 def test_routing_v1_posts_links_writer_show
67- assert_routing ( { path : '/api/v1/posts/1/links /writer' , method : :get } ,
67+ assert_routing ( { path : '/api/v1/posts/1/relationships /writer' , method : :get } ,
6868 { controller : 'api/v1/posts' , action : 'show_association' , post_id : '1' , association : 'writer' } )
6969 end
7070
7171 # V2
7272 def test_routing_v2_posts_links_author_show
73- assert_routing ( { path : '/api/v2/posts/1/links /author' , method : :get } ,
73+ assert_routing ( { path : '/api/v2/posts/1/relationships /author' , method : :get } ,
7474 { controller : 'api/v2/posts' , action : 'show_association' , post_id : '1' , association : 'author' } )
7575 end
7676
@@ -100,7 +100,7 @@ def test_routing_v4_expenseEntries_resources
100100 assert_routing ( { path : '/api/v4/expenseEntries/1' , method : :get } ,
101101 { action : 'show' , controller : 'api/v4/expense_entries' , id : '1' } )
102102
103- assert_routing ( { path : '/api/v4/expenseEntries/1/links /isoCurrency' , method : :get } ,
103+ assert_routing ( { path : '/api/v4/expenseEntries/1/relationships /isoCurrency' , method : :get } ,
104104 { controller : 'api/v4/expense_entries' , action : 'show_association' , expense_entry_id : '1' , association : 'iso_currency' } )
105105 end
106106
@@ -119,7 +119,7 @@ def test_routing_v5_expenseEntries_resources
119119 assert_routing ( { path : '/api/v5/expense-entries/1' , method : :get } ,
120120 { action : 'show' , controller : 'api/v5/expense_entries' , id : '1' } )
121121
122- assert_routing ( { path : '/api/v5/expense-entries/1/links /iso-currency' , method : :get } ,
122+ assert_routing ( { path : '/api/v5/expense-entries/1/relationships /iso-currency' , method : :get } ,
123123 { controller : 'api/v5/expense_entries' , action : 'show_association' , expense_entry_id : '1' , association : 'iso_currency' } )
124124 end
125125
@@ -129,7 +129,7 @@ def test_routing_authors_show
129129 end
130130
131131 def test_routing_author_links_posts_create_not_acts_as_set
132- assert_routing ( { path : '/api/v5/authors/1/links /posts' , method : :post } ,
132+ assert_routing ( { path : '/api/v5/authors/1/relationships /posts' , method : :post } ,
133133 { controller : 'api/v5/authors' , action : 'create_association' , author_id : '1' , association : 'posts' } )
134134 end
135135
@@ -146,12 +146,12 @@ def test_routing_primary_key_jsonapi_resources
146146 # end
147147
148148 # def test_routing_posts_links_author_except_destroy
149- # assert_routing({ path: '/api/v3/posts/1/links /author', method: :delete },
149+ # assert_routing({ path: '/api/v3/posts/1/relationships /author', method: :delete },
150150 # { controller: 'api/v3/posts', action: 'destroy_association', post_id: '1', association: 'author' })
151151 # end
152152 #
153153 # def test_routing_posts_links_tags_only_create_show
154- # assert_routing({ path: '/api/v3/posts/1/links /tags/1,2', method: :delete },
154+ # assert_routing({ path: '/api/v3/posts/1/relationships /tags/1,2', method: :delete },
155155 # { controller: 'api/v3/posts', action: 'destroy_association', post_id: '1', keys: '1,2', association: 'tags' })
156156 # end
157157
0 commit comments