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.
@@ -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/data/id'
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/data/id'
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/data/id'
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/data/type'
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
  )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fun_with_json_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Morrall