From bc9da14435c66c1a1db1625ef300d3c85561cc3a Mon Sep 17 00:00:00 2001 From: Dmitry Rybakov Date: Thu, 15 Jun 2023 16:31:58 +0200 Subject: [PATCH] RUBY-3216 Fix wildcard projection spec (#2734) * RUBY-3225 New spec test for timeseries * RUBY-3216 Fix tests for wildcard projection * Tweak spec * Bump constraint --- spec/mongo/index/view_spec.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spec/mongo/index/view_spec.rb b/spec/mongo/index/view_spec.rb index 24cf8897f6..1bab5470f5 100644 --- a/spec/mongo/index/view_spec.rb +++ b/spec/mongo/index/view_spec.rb @@ -956,12 +956,11 @@ end end - context 'on server versions >= 5.0' do - min_server_fcv '5.0' + context 'on server versions > 5.3' do + min_server_fcv '5.4' it 'passes wildcardProjection correctly' do - skip 'https://jira.mongodb.org/browse/RUBY-3216' - expect(indexes[:wildcardProjection]).to eq({ '_id' => false, 'rating' => true }) + expect(indexes[:wildcardProjection]).to eq({ 'rating' => 1 }) end end end