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

Spec failures in a positive timezone

    • Type: Icon: Task Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • None

      Hi friend,

      You have two failing specs in Aussieland. If you set your timezone to a positive timezone, like +1000, you'll see these failing specs:

      1)
      'Mongoid::Extensions::Time::Conversions#get returns the local time' FAILED
      expected: 36000,
      got: -18000 (using ==)
      ./spec/unit/mongoid/extensions/time/conversions_spec.rb:37:

      2)
      'Mongoid::Document typecasting properly casts dates and times' FAILED
      expected: Sun, 04 Jul 1976,
      got: Sat, 03 Jul 1976 (using ==)
      ./spec/integration/mongoid/document_spec.rb:249:

      Finished in 0.998387 seconds

            Assignee:
            Unassigned Unassigned
            Reporter:
            radar Ryan Bigg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: