Skip to content

Commit

Permalink
RUBY-3216 Fix wildcard projection spec (#2734)
Browse files Browse the repository at this point in the history
* RUBY-3225 New spec test for timeseries

* RUBY-3216 Fix tests for wildcard projection

* Tweak spec

* Bump constraint
  • Loading branch information
comandeo-mongo authored Jun 15, 2023
1 parent adda483 commit bc9da14
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spec/mongo/index/view_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc9da14

Please sign in to comment.