fun_with_json_api 0.0.6 → 0.0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/fun_with_json_api/attributes/relationship_collection.rb +1 -1
- data/lib/fun_with_json_api/schema_validators/check_relationships.rb +1 -1
- data/lib/fun_with_json_api/version.rb +1 -1
- data/spec/dummy/log/test.log +1473 -0
- data/spec/fun_with_json_api/deserializer_spec.rb +3 -3
- data/spec/fun_with_json_api/schema_validators/check_relationships_spec.rb +1 -1
- metadata +1 -1
@@ -558,7 +558,7 @@ describe FunWithJsonApi::Deserializer do
|
|
558
558
|
expect(payload.status).to eq '404'
|
559
559
|
expect(payload.code).to eq 'missing_relationship'
|
560
560
|
expect(payload.title).to eq 'Unable to find the requested relationship'
|
561
|
-
expect(payload.pointer).to eq '/data/relationships/examples/1/
|
561
|
+
expect(payload.pointer).to eq '/data/relationships/examples/data/1/id'
|
562
562
|
expect(payload.detail).to eq "Unable to find 'persons' with matching id: \"blargh\""
|
563
563
|
end
|
564
564
|
end
|
@@ -576,14 +576,14 @@ describe FunWithJsonApi::Deserializer do
|
|
576
576
|
expect(payload_a.status).to eq '404'
|
577
577
|
expect(payload_a.code).to eq 'missing_relationship'
|
578
578
|
expect(payload_a.title).to eq 'Unable to find the requested relationship'
|
579
|
-
expect(payload_a.pointer).to eq '/data/relationships/examples/0/
|
579
|
+
expect(payload_a.pointer).to eq '/data/relationships/examples/data/0/id'
|
580
580
|
expect(payload_a.detail).to eq "Unable to find 'persons' with matching id: \"foobar\""
|
581
581
|
|
582
582
|
payload_b = e.payload.last
|
583
583
|
expect(payload_b.status).to eq '404'
|
584
584
|
expect(payload_b.code).to eq 'missing_relationship'
|
585
585
|
expect(payload_b.title).to eq 'Unable to find the requested relationship'
|
586
|
-
expect(payload_b.pointer).to eq '/data/relationships/examples/1/
|
586
|
+
expect(payload_b.pointer).to eq '/data/relationships/examples/data/1/id'
|
587
587
|
expect(payload_b.detail).to eq "Unable to find 'persons' with matching id: \"blargh\""
|
588
588
|
end
|
589
589
|
end
|
@@ -97,7 +97,7 @@ describe FunWithJsonApi::SchemaValidators::CheckRelationships do
|
|
97
97
|
|
98
98
|
payload = e.payload.first
|
99
99
|
expect(payload.code).to eq 'invalid_relationship_type'
|
100
|
-
expect(payload.pointer).to eq '/data/relationships/foobar/0/
|
100
|
+
expect(payload.pointer).to eq '/data/relationships/foobar/data/0/type'
|
101
101
|
expect(payload.title).to eq(
|
102
102
|
'Request json_api relationship type does not match expected resource'
|
103
103
|
)
|