test/integration/routes/routes_test.rb in jsonapi-resources-0.0.7 vs test/integration/routes/routes_test.rb in jsonapi-resources-0.0.8

- old
+ new

@@ -109,9 +109,15 @@ def test_routing_v3_posts_show assert_routing({path: '/api/v3/posts/1', method: :get}, {action: 'show', controller: 'api/v3/posts', id: '1'}) end + #primary_key + def test_routing_primary_key_jsonapi_resources + assert_routing({path: '/iso_currencies/USD', method: :get}, + {action: 'show', controller: 'iso_currencies', code: 'USD'}) + end + # ToDo: Refute routing # def test_routing_v3_posts_delete # assert_routing({ path: '/api/v3/posts/1', method: :delete }, # {action: 'destroy', controller: 'api/v3/posts', id: '1'}) # end