Sha256: 9cd2342ef5e14e8c0e9eac49b7f7edffda865bde3c6085639119ee19da26f03c

Contents?: true

Size: 335 Bytes

Versions: 5

Compression:

Stored size: 335 Bytes

Contents

require 'temporal'

describe 'One hour in other units' do
  it 'is 3600 seconds' do
    1.hour.should == 3600.seconds
  end
  it 'is 60 minutes' do
    1.hour.should == 60.minutes
  end
  it 'is 1/24th of a day' do
    1.hour.should == (1.0/24).days
  end
  it 'is 1/168th of a week' do
    1.hour.should == (1.0/168).weeks
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
temporal-0.4.4 test/hours.rb
temporal-0.4.3 test/hours.rb
temporal-0.4.2 test/hours.rb
temporal-0.4.1 test/hours.rb
temporal-0.4.0 test/hours.rb