-
Type: Task
-
Resolution: Fixed
-
Priority: Critical - P2
-
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.