-
Type: Bug
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
Looks like there is a test failure in a time mongoization test:
speed% time xxCML=1 aRUBYOPT=-w MONGODB_URI=mongodb://localhost:27741 bs spec/mongoid/extensions/string_spec.rb 1) Mongoid::Extensions::String#__mongoize_time__ when not using active support's time zone when the string is a valid time without time zone behaves like mongoizes to Time is equal to expected time Failure/Error: expect(mongoized).to eq(expected_time) expected: 2010-11-19 13:24:49.123457000 +0900 got: 2010-11-19 00:24:49.123457000 -0500 (compared using ==) Diff: @@ -1,2 +1,2 @@ -Fri, 19 Nov 2010 13:24:49 JST +09:00 +2010-11-19 00:24:49 -0500 Shared Example Group: "mongoizes to Time" called from ./spec/mongoid/extensions/string_spec.rb:170 # ./spec/support/shared/time.rb:42:in `block (2 levels) in <top (required)>' 53/53 |==================================================== 100 ====================================================>| Time: 00:00:00 Finished in 0.16636 seconds (files took 0.40841 seconds to load) 53 examples, 1 failure Failed examples: rspec './spec/mongoid/extensions/string_spec.rb[1:3:2:2:1:2]' # Mongoid::Extensions::String#__mongoize_time__ when not using active support's time zone when the string is a valid time without time zone behaves like mongoizes to Time is equal to expected time
This could have something to do with daylight savings because I seem to recall running all these tests successfully in the past.
This test failure does not occur in Evergreen.
- related to
-
MONGOID-4664 Consistently mongoize times + user guidance for time zones
- Closed