spec/timespan_spec.rb in timespan-0.2.1 vs spec/timespan_spec.rb in timespan-0.2.2
- old
+ new
@@ -24,10 +24,9 @@
its(:end_date) { should be }
its(:duration) { should be_a Duration }
end
end
-
context 'From and To with 1 day apart' do
let(:timespan) { Timespan.new :from => from, :to => to}
describe '.convert_to_time' do
specify { subject.convert_to_time("1 day ago").to_s.should == 1.day.ago.to_s }