Sha256: c512833840656c87f7f65013c1f731430c1f630c3eef04cfc61d290df96f92dd
Contents?: true
Size: 1.05 KB
Versions: 5
Compression:
Stored size: 1.05 KB
Contents
require 'spec_helper' describe EasyTransilien::Station do it 'should get some Station when searching for argenteuil' do col = EasyTransilien::Station.find('argenteuil') col.is_a?(Array).should be_true col.first.is_a?(EasyTransilien::Station).should be_true col.length.should eql(2) end it 'should get all Station for empty search' do col = EasyTransilien::Station.find col.is_a?(Array).should be_true (col.length > 0).should be_true end it 'should get at least a Line for a Station' do station = EasyTransilien::Station.find('Val d\'Argenteuil').first station.lines.is_a?(Array).should be_true (station.lines.length > 0).should be_true station.lines[0].is_a?(EasyTransilien::Line).should be_true end it 'should get at least one line_letters for a Station' do station = EasyTransilien::Station.find('Val d\'Argenteuil').first station.codes.is_a?(Array).should be_true (station.codes.length > 0).should be_true station.codes[0].is_a?(String).should be_true station.codes[0].should eql('J') end end
Version data entries
5 entries across 5 versions & 1 rubygems