Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5317

Fix i18n test failures on jruby 9.3

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 8.0.1
    • Affects Version/s: None
    • Component/s: None

      serene2% xCLIENT_DEBUG=1 STRESS=1  MONGODB_URI=mongodb://localhost:14400 bs spec/mongoid/errors/mongoid_error_spec.rb
                                                                                      
        1) Mongoid::Errors::MongoidError#compose_message sets ivar problem
           Failure/Error: ::I18n.translate("#{BASE_KEY}.#{key}", **options)
           
             I18n received :translate with unexpected arguments
               expected: ("mongoid.errors.messages.message_title", {})
                    got: ("mongoid.errors.messages.callbacks.message")
             Diff:
             @@ -1 +1 @@
             -["mongoid.errors.messages.message_title", {}]
             +["mongoid.errors.messages.callbacks.message"]
             
           # ./lib/mongoid/errors/mongoid_error.rb:48:in `translate'
           # ./lib/mongoid/errors/mongoid_error.rb:61:in `translate_problem'
           # ./lib/mongoid/errors/mongoid_error.rb:22:in `compose_message'
           # ./spec/mongoid/errors/mongoid_error_spec.rb:34:in `block in <main>'
      
                                                                                      
        2) Mongoid::Errors::MongoidError#compose_message sets ivar summary
           Failure/Error: ::I18n.translate("#{BASE_KEY}.#{key}", **options)
           
             I18n received :translate with unexpected arguments
               expected: ("mongoid.errors.messages.message_title", {})
                    got: ("mongoid.errors.messages.callbacks.message")
             Diff:
             @@ -1 +1 @@
             -["mongoid.errors.messages.message_title", {}]
             +["mongoid.errors.messages.callbacks.message"]
             
           # ./lib/mongoid/errors/mongoid_error.rb:48:in `translate'
           # ./lib/mongoid/errors/mongoid_error.rb:61:in `translate_problem'
           # ./lib/mongoid/errors/mongoid_error.rb:22:in `compose_message'
           # ./spec/mongoid/errors/mongoid_error_spec.rb:34:in `block in <main>'
      
                                                                                      
        3) Mongoid::Errors::MongoidError#compose_message sets ivar resolution
           Failure/Error: ::I18n.translate("#{BASE_KEY}.#{key}", **options)
           
             I18n received :translate with unexpected arguments
               expected: ("mongoid.errors.messages.message_title", {})
                    got: ("mongoid.errors.messages.callbacks.message")
             Diff:
             @@ -1 +1 @@
             -["mongoid.errors.messages.message_title", {}]
             +["mongoid.errors.messages.callbacks.message"]
             
           # ./lib/mongoid/errors/mongoid_error.rb:48:in `translate'
           # ./lib/mongoid/errors/mongoid_error.rb:61:in `translate_problem'
           # ./lib/mongoid/errors/mongoid_error.rb:22:in `compose_message'
           # ./spec/mongoid/errors/mongoid_error_spec.rb:34:in `block in <main>'
      
                                                                                      
        4) Mongoid::Errors::MongoidError#compose_message sets ivar problem_title
           Failure/Error: ::I18n.translate("#{BASE_KEY}.#{key}", **options)
           
             I18n received :translate with unexpected arguments
               expected: ("mongoid.errors.messages.message_title", {})
                    got: ("mongoid.errors.messages.callbacks.message")
             Diff:
             @@ -1 +1 @@
             -["mongoid.errors.messages.message_title", {}]
             +["mongoid.errors.messages.callbacks.message"]
             
           # ./lib/mongoid/errors/mongoid_error.rb:48:in `translate'
           # ./lib/mongoid/errors/mongoid_error.rb:61:in `translate_problem'
           # ./lib/mongoid/errors/mongoid_error.rb:22:in `compose_message'
           # ./spec/mongoid/errors/mongoid_error_spec.rb:34:in `block in <main>'
      
                                                                                      
        5) Mongoid::Errors::MongoidError#compose_message sets ivar summary_title
           Failure/Error: ::I18n.translate("#{BASE_KEY}.#{key}", **options)
           
             I18n received :translate with unexpected arguments
               expected: ("mongoid.errors.messages.message_title", {})
                    got: ("mongoid.errors.messages.callbacks.message")
             Diff:
             @@ -1 +1 @@
             -["mongoid.errors.messages.message_title", {}]
             +["mongoid.errors.messages.callbacks.message"]
             
           # ./lib/mongoid/errors/mongoid_error.rb:48:in `translate'
           # ./lib/mongoid/errors/mongoid_error.rb:61:in `translate_problem'
           # ./lib/mongoid/errors/mongoid_error.rb:22:in `compose_message'
           # ./spec/mongoid/errors/mongoid_error_spec.rb:34:in `block in <main>'
      
                                                                                      
        6) Mongoid::Errors::MongoidError#compose_message sets ivar resolution_title
           Failure/Error: ::I18n.translate("#{BASE_KEY}.#{key}", **options)
           
             I18n received :translate with unexpected arguments
               expected: ("mongoid.errors.messages.message_title", {})
                    got: ("mongoid.errors.messages.callbacks.message")
             Diff:
             @@ -1 +1 @@
             -["mongoid.errors.messages.message_title", {}]
             +["mongoid.errors.messages.callbacks.message"]
             
           # ./lib/mongoid/errors/mongoid_error.rb:48:in `translate'
           # ./lib/mongoid/errors/mongoid_error.rb:61:in `translate_problem'
           # ./lib/mongoid/errors/mongoid_error.rb:22:in `compose_message'
           # ./spec/mongoid/errors/mongoid_error_spec.rb:34:in `block in <main>'
      
                                                                                      
        7) Mongoid::Errors::MongoidError#to_json has problem
           Failure/Error: ::I18n.translate("#{BASE_KEY}.#{key}", **options)
           
             I18n received :translate with unexpected arguments
               expected: ("mongoid.errors.messages.message_title", {})
                    got: ("mongoid.errors.messages.callbacks.message")
             Diff:
             @@ -1 +1 @@
             -["mongoid.errors.messages.message_title", {}]
             +["mongoid.errors.messages.callbacks.message"]
             
           # ./lib/mongoid/errors/mongoid_error.rb:48:in `translate'
           # ./lib/mongoid/errors/mongoid_error.rb:61:in `translate_problem'
           # ./lib/mongoid/errors/mongoid_error.rb:22:in `compose_message'
           # ./spec/mongoid/errors/mongoid_error_spec.rb:34:in `block in <main>'
      
                                                                                      
        8) Mongoid::Errors::MongoidError#to_json has summary
           Failure/Error: ::I18n.translate("#{BASE_KEY}.#{key}", **options)
           
             I18n received :translate with unexpected arguments
               expected: ("mongoid.errors.messages.message_title", {})
                    got: ("mongoid.errors.messages.callbacks.message")
             Diff:
             @@ -1 +1 @@
             -["mongoid.errors.messages.message_title", {}]
             +["mongoid.errors.messages.callbacks.message"]
             
           # ./lib/mongoid/errors/mongoid_error.rb:48:in `translate'
           # ./lib/mongoid/errors/mongoid_error.rb:61:in `translate_problem'
           # ./lib/mongoid/errors/mongoid_error.rb:22:in `compose_message'
           # ./spec/mongoid/errors/mongoid_error_spec.rb:34:in `block in <main>'
      
                                                                                      
        9) Mongoid::Errors::MongoidError#to_json has resolution
           Failure/Error: ::I18n.translate("#{BASE_KEY}.#{key}", **options)
           
             I18n received :translate with unexpected arguments
               expected: ("mongoid.errors.messages.message_title", {})
                    got: ("mongoid.errors.messages.callbacks.message")
             Diff:
             @@ -1 +1 @@
             -["mongoid.errors.messages.message_title", {}]
             +["mongoid.errors.messages.callbacks.message"]
             
           # ./lib/mongoid/errors/mongoid_error.rb:48:in `translate'
           # ./lib/mongoid/errors/mongoid_error.rb:61:in `translate_problem'
           # ./lib/mongoid/errors/mongoid_error.rb:22:in `compose_message'
           # ./spec/mongoid/errors/mongoid_error_spec.rb:34:in `block in <main>'
      
       9/9 |========================= 100 ==========================>| Time: 00:00:01 
      
      Finished in 1.25 seconds (files took 2.16 seconds to load)
      9 examples, 9 failures
      
      Failed examples:
      
      rspec ./spec/mongoid/errors/mongoid_error_spec.rb:39 # Mongoid::Errors::MongoidError#compose_message sets ivar problem
      rspec ./spec/mongoid/errors/mongoid_error_spec.rb:43 # Mongoid::Errors::MongoidError#compose_message sets ivar summary
      rspec ./spec/mongoid/errors/mongoid_error_spec.rb:47 # Mongoid::Errors::MongoidError#compose_message sets ivar resolution
      rspec ./spec/mongoid/errors/mongoid_error_spec.rb:51 # Mongoid::Errors::MongoidError#compose_message sets ivar problem_title
      rspec ./spec/mongoid/errors/mongoid_error_spec.rb:55 # Mongoid::Errors::MongoidError#compose_message sets ivar summary_title
      rspec ./spec/mongoid/errors/mongoid_error_spec.rb:59 # Mongoid::Errors::MongoidError#compose_message sets ivar resolution_title
      rspec ./spec/mongoid/errors/mongoid_error_spec.rb:66 # Mongoid::Errors::MongoidError#to_json has problem
      rspec ./spec/mongoid/errors/mongoid_error_spec.rb:71 # Mongoid::Errors::MongoidError#to_json has summary
      rspec ./spec/mongoid/errors/mongoid_error_spec.rb:76 # Mongoid::Errors::MongoidError#to_json has resolution
      

      Works on jruby 9.2.

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

              Created:
              Updated:
              Resolved: