Sha256: 316b2b526522ee7c0bd5e3e17fb8eda0c89a5f899fe4f433334a58af156aa0ed

Contents?: true

Size: 381 Bytes

Versions: 5

Compression:

Stored size: 381 Bytes

Contents

require 'temporal'

describe 'One second in other units' do
  it 'is 1/60th of a minute' do
    1.second.should == (1.0/60).minutes
  end
  it 'is 1/3600th of a hour' do
    1.second.should == (1.0/3600).hours
  end
  it 'is 1/86400th of a day' do
    1.second.should == (1.0/86400).days
  end
  it 'is 1/604800th of a week' do
    1.second.should == (1.0/604800).weeks
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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