test/unit/ierail.rb in ierail-0.3.4 vs test/unit/ierail.rb in ierail-0.3.5

- old
+ new

@@ -35,18 +35,18 @@ def test_that_the_before_time_constraint_works #Thirty minutes from now thirty_mins = @now + (60 * 30) time = "#{thirty_mins.hour}:#{thirty_mins.min}" # "HH:MM" - before_train = @ir.southbound_from('Malahide').before(time).sample + before_train = @ir.southbound_from('Dublin Connolly').before(time).sample assert before_train.expdepart <= thirty_mins end def test_that_the_after_time_constraint_works #Thirty minutes from now thirty_mins = @now + (60 * 30) time = "#{thirty_mins.hour}:#{thirty_mins.min}" # "HH:MM" - after_train = @ir.southbound_from('Malahide').after(time).sample + after_train = @ir.southbound_from('Dublin Connolly').after(time).sample assert after_train.expdepart >= thirty_mins end def test_that_the_in_constraint_works mins = 30