Sha256: 8b4a727b1f4cbb5a947373a34d865a310ac089790a4eb192925a7b36716a4b69
Contents?: true
Size: 708 Bytes
Versions: 22
Compression:
Stored size: 708 Bytes
Contents
require 'spec_helper' describe Maid::NumericExtensions::Time, '#since?' do it 'should tell you that 1 week ago happened after 2 weeks ago' do 1.week.since?(2.weeks.ago).should be_true end it 'should tell you that 2 weeks ago was not after 1 week ago' do 2.week.since?(1.weeks.ago).should be_false end end describe Maid::NumericExtensions::SizeToKb do it 'should tell you that 1 megabyte equals 1024 kilobytes' do 1.megabyte.should == 1024.kilobytes end it 'should tell you that 1 gigabyte equals 1024 megabytes' do 1.gigabyte.should == 1024.megabytes end it 'should tell you that 1 terabyte equals 1024 gigabytes' do 1.terabyte.should == 1024.gigabytes end end
Version data entries
22 entries across 22 versions & 1 rubygems