Sha256: 8fc1000fbe5278271f2b45142afb77ebe0e67e9525ef5aceb79426d939be6fef

Contents?: true

Size: 258 Bytes

Versions: 4

Compression:

Stored size: 258 Bytes

Contents

covers 'facets/time/past'

testcase Time do

  #
  unit :past? do
    t = Time.now - 1000
    t.assert.past?

    n = Time.now + 1000
    n.refute.past?

    n = Time.now - 1001
    n.assert.past?(t)

    n = Time.now - 999
    n.refute.past?(t)
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facets-2.9.1 test/core/time/test_past.rb
facets-2.9.0 test/core/time/test_past.rb
facets-2.9.0.pre.2 test/core/time/test_past.rb
facets-2.9.0.pre.1 test/core/time/test_past.rb