fun_with_json_api 0.0.11.2 → 0.0.11.3

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.
@@ -447,6 +447,10 @@ describe FunWithJsonApi::Deserializer do
447
447
  expect(deserializer.parse_example_id('foobar')).to eq author.id
448
448
  end
449
449
 
450
+ it 'finds a resource by the defined id_param and returns the resource id' do
451
+ expect(deserializer.parse_example_id(nil)).to eq nil
452
+ end
453
+
450
454
  it 'raises a MissingRelationship when unable to find the resource' do
451
455
  expect do
452
456
  deserializer.parse_example_id 'foobar'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fun_with_json_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11.2
4
+ version: 0.0.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Morrall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-26 00:00:00.000000000 Z
11
+ date: 2016-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails