Sha256: fb5226a35463ee5be4f0db382e5f1ca9439a7b0b2651a353827614eb445ea7e7
Contents?: true
Size: 1.05 KB
Versions: 2
Compression:
Stored size: 1.05 KB
Contents
$:.unshift(File.join(File.dirname(__FILE__), '..','..', 'lib')) require_relative 'helper' class StationTest < MiniTest::Unit::TestCase def setup ir = IERail.new VCR.configure do |c| c.cassette_library_dir = 'fixtures/vcr_cassettes' c.hook_into :webmock end VCR.use_cassette('stations') do @station = ir.stations.sample #Use a random station end end def test_that_a_station_has_a_description refute_empty @station.description end def test_that_a_station_responds_to_name_alias assert_respond_to @station, :name assert_equal @station.name, @station.description end def test_that_a_station_has_a_location refute_empty @station.location end def test_that_a_stations_locations_is_an_array assert_equal @station.location.class, Array end def test_that_a_stations_location_contains_two_values assert_equal @station.location.size, 2 end def test_that_a_station_has_a_code refute_empty @station.code end def test_that_a_stations_has_an_id refute_nil @station.id end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ierail-0.4.1 | test/unit/station.rb |
ierail-0.4.0 | test/unit/station.rb |