Sha256: 2e40eef65e587aef5c30d6ddaf2b7d8b222e3f9bb5cc98bd5b7d12727057d345
Contents?: true
Size: 701 Bytes
Versions: 3
Compression:
Stored size: 701 Bytes
Contents
require 'spec_helper' describe Maid::NumericExtensions::Time, '#since?' do it 'tells you that 1 week ago happened after 2 weeks ago' do expect(1.week.since?(2.weeks.ago)).to be(true) end it 'tells you that 2 weeks ago was not after 1 week ago' do expect(2.week.since?(1.weeks.ago)).to be(false) end end describe Maid::NumericExtensions::SizeToKb do it 'tells you that 1 megabyte equals 1024 kilobytes' do expect(1.megabyte).to eq(1024.kilobytes) end it 'tells you that 1 gigabyte equals 1024 megabytes' do expect(1.gigabyte).to eq(1024.megabytes) end it 'tells you that 1 terabyte equals 1024 gigabytes' do expect(1.terabyte).to eq(1024.gigabytes) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
maid-0.10.0 | spec/lib/maid/numeric_extensions_spec.rb |
maid-0.10.0.pre.alpha.3 | spec/lib/maid/numeric_extensions_spec.rb |
maid-0.10.0.pre.alpha.2 | spec/lib/maid/numeric_extensions_spec.rb |