spec/trip_spec.rb in easy_transilien-0.0.7 vs spec/trip_spec.rb in easy_transilien-0.0.8

- old
+ new

@@ -34,17 +34,15 @@ it 'should autoset at and last for options[:whole_day]' do hoy = Time.new trips = EasyTransilien::Trip.find('val d\'argenteuil', 'paris saint-lazare', {whole_day: true}) trips.first.at.should eql(Time.new(hoy.year, hoy.month, hoy.day, 0, 0, 1)) - trips.first.last.should eql(Time.new(hoy.year, hoy.month, (hoy.day + 1)) + 1) end it 'should ignore options :at and :last when :whole_day is set' do hoy = Time.new at = Time.now last = Time.now + 3600 * 2 + 42 # arbitrary… trips = EasyTransilien::Trip.find('val d\'argenteuil', 'paris saint-lazare', {whole_day: true, at: at, last: last}) trips.first.at.should eql(Time.new(hoy.year, hoy.month, hoy.day, 0, 0, 1)) - trips.first.last.should eql(Time.new(hoy.year, hoy.month, (hoy.day + 1)) + 1) end end