From 5af245294c2bed360729b657a9b826682654b0c4 Mon Sep 17 00:00:00 2001 From: Vesa Laakso Date: Wed, 24 Aug 2022 20:49:01 +0300 Subject: [PATCH] Add missing spec coverage for related resources operations I discovered that this simple scenario wasn't tested properly when working on JR 0.10 support --- spec/requests/related_resources_operations_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/requests/related_resources_operations_spec.rb b/spec/requests/related_resources_operations_spec.rb index d7e9c721..05cf8cfe 100644 --- a/spec/requests/related_resources_operations_spec.rb +++ b/spec/requests/related_resources_operations_spec.rb @@ -66,6 +66,7 @@ context 'authorized for show_related_resource' do before { allow_operation('show_related_resource', source_record: article, related_record: article.author) } + it { is_expected.to be_ok } # If this happens in real life, it's mostly a bug. We want to document the # behaviour in that case anyway, as it might be surprising.