Sha256: 44158378199141251ee90fae7a05ccdb77857fd88df85cefbfeb095b614eb68d

Contents?: true

Size: 394 Bytes

Versions: 5

Compression:

Stored size: 394 Bytes

Contents

require 'test_helper'
require 'tins'

module Tins
  class TimeDummyTest < Test::Unit::TestCase
    require 'tins/xt/time_dummy'
    require 'time'

    def test_time_dummy
      time = Time.parse('2009-09-09 21:09:09')
      assert_not_equal time, Time.now
      Time.dummy = time
      assert_equal time, Time.now
      Time.dummy = nil
      assert_not_equal time, Time.now
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tins-0.3.9 tests/time_dummy_test.rb
tins-0.3.8 tests/time_dummy_test.rb
tins-0.3.7 tests/time_dummy_test.rb
tins-0.3.6 tests/time_dummy_test.rb
tins-0.3.5 tests/time_dummy_test.rb