test/integration/routes/routes_test.rb in jsonapi-resources-0.5.9 vs test/integration/routes/routes_test.rb in jsonapi-resources-0.6.0
- old
+ new
@@ -36,11 +36,11 @@
assert_routing({path: '/posts/1/relationships/tags', method: :get},
{controller: 'posts', action: 'show_relationship', post_id: '1', relationship: 'tags'})
end
def test_routing_posts_links_tags_destroy
- assert_routing({path: '/posts/1/relationships/tags/1,2', method: :delete},
- {controller: 'posts', action: 'destroy_relationship', post_id: '1', keys: '1,2', relationship: 'tags'})
+ assert_routing({path: '/posts/1/relationships/tags', method: :delete},
+ {controller: 'posts', action: 'destroy_relationship', post_id: '1', relationship: 'tags'})
end
def test_routing_posts_links_tags_create
assert_routing({path: '/posts/1/relationships/tags', method: :post},
{controller: 'posts', action: 'create_relationship', post_id: '1', relationship: 'tags'})