When running against the latest server, wildcard projection spec fails:
1) Mongo::Index::View#create_one when providing a valid wildcard projection on server versions >= 5.0 passes wildcardProjection correctly Failure/Error: expect(indexes[:wildcardProjection]).to eq({ '_id' => false, 'rating' => true }) expected: {"_id"=>false, "rating"=>true} got: {"rating"=>1} (compared using ==) Diff: @@ -1,3 +1,2 @@ -"_id" => false, -"rating" => true, +"rating" => 1, # ./spec/mongo/index/view_spec.rb:964:in `block (5 levels) in <top (required)>' # /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run' # /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop' # /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run' # /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry' # /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
This spec does not fail on previous versions.
- depends on
-
SERVER-73302 Changed output format in createIndexes
- Closed