Sha256: 42c5e1afc31692ddb395a70abf7d30bf65a58bb5be5441a734f87ed91c86d964

Contents?: true

Size: 319 Bytes

Versions: 6

Compression:

Stored size: 319 Bytes

Contents

require 'spec_helper'

describe Maid::NumericExtensions, '#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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
maid-0.1.2 spec/lib/maid/numeric_extensions_spec.rb
maid-0.1.1 spec/lib/maid/numeric_extensions_spec.rb
maid-0.1.0 spec/lib/maid/numeric_extensions_spec.rb
maid-0.1.0.rc.1 spec/lib/maid/numeric_extensions_spec.rb
maid-0.1.0.beta.4 spec/lib/maid/numeric_extensions_spec.rb
maid-0.1.0.beta.3 spec/lib/maid/numeric_extensions_spec.rb