We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae8dc12 commit 68e1a99Copy full SHA for 68e1a99
1 file changed
spec/helpers_spec.rb
@@ -173,6 +173,10 @@
173
it 'is only includes of a given type at indices' do
174
expect(json_includes('comments', 1).length).to eq(1)
175
end
176
+
177
+ it 'throws when asking for an index beyond the length of the includes' do
178
+ expect{ json_includes('comments', 99) }.to raise_error JsonapiSpecHelpersError
179
+ end
180
181
182
0 commit comments