test/unit/station_data.rb in ierail-0.3.2 vs test/unit/station_data.rb in ierail-0.3.4

- old
+ new

@@ -31,11 +31,11 @@ def test_that_there_is_a_late_value refute_empty @station_data.late end def test_that_there_is_a_query_time - refute_empty @station_data.query_time + refute_nil @station_data.query_time end def test_that_there_is_a_train_date refute_empty @station_data.train_date end @@ -44,37 +44,37 @@ assert_equal @station_data.origin.class, Hash end def test_that_there_is_an_origin_name_and_time refute_empty @station_data.origin[:name] - refute_empty @station_data.origin[:time] + refute_nil @station_data.origin[:time] end def test_that_destination_method_returns_a_hash assert_equal @station_data.destination.class, Hash end def test_that_there_is_a_destination_name_and_time refute_empty @station_data.destination[:name] - refute_empty @station_data.destination[:time] + refute_nil @station_data.destination[:time] end def test_that_arrival_method_returns_a_hash assert_equal @station_data.arrival.class, Hash end def test_that_there_is_an_arrival_sched_and_exp - refute_empty @station_data.arrival[:scheduled] - refute_empty @station_data.arrival[:expected] + refute_nil @station_data.arrival[:scheduled] + refute_nil @station_data.arrival[:expected] end def test_that_departure_method_returns_a_hash assert_equal @station_data.departure.class, Hash end def test_that_there_is_a_departure_sched_and_exp - refute_empty @station_data.departure[:scheduled] - refute_empty @station_data.departure[:expected] + refute_nil @station_data.departure[:scheduled] + refute_nil @station_data.departure[:expected] end def test_that_it_responds_to_late? assert_respond_to @station_data, :late? end