Removes Hash#dig usage
This commit is contained in:
parent
100f850416
commit
ef04bc377e
@ -25,7 +25,7 @@ describe FastJsonapi::ObjectSerializer do
|
||||
|
||||
context "with a single record" do
|
||||
let(:serializer) { MovieSerializer.new(movie, options_with_params) }
|
||||
let(:links) { hash.dig(:data, :relationships, :actors, :links) }
|
||||
let(:links) { hash[:data][:relationships][:actors][:links] }
|
||||
|
||||
it "handles relationship links that call a method" do
|
||||
expect(links).to be_present
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user