spec/mongoid/extensions/time_spec.rb in mongoid-6.0.2 vs spec/mongoid/extensions/time_spec.rb in mongoid-6.0.3

- old
+ new

@@ -275,11 +275,11 @@ it "does not alter seconds" do expect((eom_time_mongoized.usec)).to eq(999999) end it "does not alter seconds with fractions" do - expect(DateTime.mongoize(11.11).to_f).to eq(11.11) + expect(DateTime.mongoize(1.11).to_f).to eq(1.11) end context "when using the ActiveSupport time zone" do let(:datetime) do @@ -338,10 +338,10 @@ it "doesn't strip milli- or microseconds" do expect(Time.mongoize(time).to_f).to eq(time.to_f) end it "does not alter seconds with fractions" do - expect(Time.mongoize(102.63).to_f).to eq(102.63) + expect(Time.mongoize(102.25).to_f).to eq(102.25) end end context "when given an ActiveSupport::TimeWithZone" do