We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 100f850 commit ef04bc3Copy full SHA for ef04bc3
1 file changed
spec/lib/object_serializer_relationship_links_spec.rb
@@ -25,7 +25,7 @@ class MovieSerializer
25
26
context "with a single record" do
27
let(:serializer) { MovieSerializer.new(movie, options_with_params) }
28
- let(:links) { hash.dig(:data, :relationships, :actors, :links) }
+ let(:links) { hash[:data][:relationships][:actors][:links] }
29
30
it "handles relationship links that call a method" do
31
expect(links).to be_present
0 commit comments