Sha256: e4d5253795ad89e28261ccc4c8c9d945c5841ad01fe5545906a17c8e79d314b6

Contents?: true

Size: 724 Bytes

Versions: 467

Compression:

Stored size: 724 Bytes

Contents

require File.expand_path('../helper', __FILE__)

class TestRakeEarlyTime < Rake::TestCase
  def test_create
    early = Rake::EarlyTime.instance
    assert early <= Time.now
    assert early < Time.now
    assert early != Time.now
    assert Time.now > early
    assert Time.now >= early
    assert Time.now != early
  end

  def test_equality
    early = Rake::EarlyTime.instance
    assert_equal early, early, "two early times should be equal"
  end

  def test_original_time_compare_is_not_messed_up
    t1 = Time.mktime(1970, 1, 1, 0, 0, 0)
    t2 = Time.now
    assert t1 < t2
    assert t2 > t1
    assert t1 == t1
    assert t2 == t2
  end

  def test_to_s
    assert_equal "<EARLY TIME>", Rake::EARLY.to_s
  end
end

Version data entries

467 entries across 397 versions & 115 rubygems

Version Path
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_early_time.rb
lgrgic_palindrome_detector-0.2.0 vendor/cache/gems/lgrgic_palindrome_detector-0.1.0/vendor/cache/gems/rake-10.5.0/test/test_rake_early_time.rb
lgrgic_palindrome_detector-0.2.0 vendor/cache/gems/rake-10.5.0/test/test_rake_early_time.rb
lgrgic_palindrome_detector-0.1.0 vendor/cache/gems/rake-10.5.0/test/test_rake_early_time.rb
xaiml-0.1.1 vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_early_time.rb
xaiml-0.1.0 vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_early_time.rb
wfrey_palindrome-0.3.0 vendor/bundle/ruby/2.3.0/gems/wfrey_palindrome-0.1.0/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_early_time.rb
wfrey_palindrome-0.3.0 vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_early_time.rb
wfrey_palindrome-0.2.0 vendor/bundle/ruby/2.3.0/gems/wfrey_palindrome-0.1.0/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_early_time.rb
wfrey_palindrome-0.2.0 vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_early_time.rb
wfrey_palindrome-0.1.0 vendor/bundle/ruby/2.3.0/gems/wfrey_palindrome-0.1.0/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_early_time.rb
wfrey_palindrome-0.1.0 vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_early_time.rb
bsielski_control_flow-1.0.0 vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_early_time.rb
daslabs-0.12.0 vendor/cache/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_early_time.rb
daslabs-0.11.0 vendor/cache/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_early_time.rb
sprokovuln-0.2.0 vendor/ruby/gems/rake-10.5.0/test/test_rake_early_time.rb
mercadopago-custom-checkout-0.1.2 .gs/gems/rake-10.5.0/test/test_rake_early_time.rb
monero_wallet_gen-0.1.0 vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_early_time.rb
sb_prime_table-0.1.1 vendor/bundle/ruby/2.4.0/gems/rake-10.5.0/test/test_rake_early_time.rb
sb_prime_table-0.1.0 vendor/bundle/ruby/2.4.0/gems/rake-10.5.0/test/test_rake_early_time.rb