Sha256: e609ad739a3f055564df54d78682816192b75149166a23ac3792196a1414f71b
Contents?: true
Size: 450 Bytes
Versions: 1
Compression:
Stored size: 450 Bytes
Contents
require_relative '../../lib/moments.rb' describe Moments do context 'calculates the distance between two given times' do let(:from) do Time.new 2012, 1, 1 end let(:to) do Time.new 2013, 1, 1 end it '#difference requires a start and end time' do expect do Moments.difference(from, to) end.to_not raise_error Moments.difference(from, to).should be_a Moments::Difference end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
moments-0.0.1.alpha | spec/lib/moments_spec.rb |