Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2491

slice test failing on Ruby 2.4 with AS

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • bson-4.12.0
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • Fully Compatible

      tk2% WITH_ACTIVE_SUPPORT='~> 5.2.0' rake
      [bson] Warning: No private key present, creating unsigned gem.
      mkdir -p tmp/x86_64-linux/bson_native/2.4.10
      cd tmp/x86_64-linux/bson_native/2.4.10
      /a/home/w/.rbenv/versions/2.4.10/bin/ruby -I. ../../../../ext/bson/extconf.rb
      [bson] Warning: No private key present, creating unsigned gem.
      creating Makefile
      cd -
      cd tmp/x86_64-linux/bson_native/2.4.10
      /usr/bin/gmake
      compiling ../../../../ext/bson/bytebuf.c
      compiling ../../../../ext/bson/endian.c
      compiling ../../../../ext/bson/init.c
      compiling ../../../../ext/bson/libbson-utf8.c
      compiling ../../../../ext/bson/read.c
      compiling ../../../../ext/bson/util.c
      compiling ../../../../ext/bson/write.c
      linking shared-object bson_native.so
      cd -
      mkdir -p tmp/x86_64-linux/stage/lib
      install -c tmp/x86_64-linux/bson_native/2.4.10/bson_native.so lib/bson_native.so
      cp tmp/x86_64-linux/bson_native/2.4.10/bson_native.so tmp/x86_64-linux/stage/lib/bson_native.so
      /a/home/w/.rbenv/versions/2.4.10/bin/ruby -I/a/home/w/.rbenv/versions/2.4.10/lib/ruby/gems/2.4.0/gems/rspec-core-3.10.1/lib:/a/home/w/.rbenv/versions/2.4.10/lib/ruby/gems/2.4.0/gems/rspec-support-3.10.1/lib /a/home/w/.rbenv/versions/2.4.10/lib/ruby/gems/2.4.0/gems/rspec-core-3.10.1/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
      [bson] Warning: No private key present, creating unsigned gem.
                                                                                                                           
        1) BSON::Document#slice when provided symbol keys returns the partial document
           Failure/Error: expect(document.slice(:key1)).to contain_exactly(['key1', 'value1'])
           
             expected collection contained:  [["key1", "value1"]]
             actual collection contained:    [[:key1, "value1"]]
             the missing elements were:      [["key1", "value1"]]
             the extra elements were:        [[:key1, "value1"]]
           # ./spec/bson/document_spec.rb:226:in `block (4 levels) in <top (required)>'
      
       6822/6822 |========================================= 100 =========================================>| Time: 00:00:01 
      
      Pending: (Failures listed here are expected and do not affect your suite's status)
      
        1) Driver BSON Corpus Legacy spec tests (top.json): Top-level document validity INVALID CASE: Stated length less than byte count, with garbage after envelope raises an error
           # This test case does not raise and error but should
           # ./spec/spec_tests/corpus_legacy_spec.rb:61
      
      
      Finished in 1.74 seconds (files took 1.09 seconds to load)
      6822 examples, 1 failure, 1 pending
      
      Failed examples:
      
      rspec ./spec/bson/document_spec.rb:225 # BSON::Document#slice when provided symbol keys returns the partial document
      /a/home/w/.rbenv/versions/2.4.10/bin/ruby -I/a/home/w/.rbenv/versions/2.4.10/lib/ruby/gems/2.4.0/gems/rspec-core-3.10.1/lib:/a/home/w/.rbenv/versions/2.4.10/lib/ruby/gems/2.4.0/gems/rspec-support-3.10.1/lib /a/home/w/.rbenv/versions/2.4.10/lib/ruby/gems/2.4.0/gems/rspec-core-3.10.1/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb failed
      tk2% 
      

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: