Sha256: 75a1b12f1b6ef7b1e4ed20ff63167a6eccee45507bc854049ed08976b9d79fd5

Contents?: true

Size: 1001 Bytes

Versions: 1

Compression:

Stored size: 1001 Bytes

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 Line for a Station' do
    station = EasyTransilien::Station.find('Val d\'Argenteuil').first
    station.lines.is_a?(Array).should be_true
    station.lines[0].is_a?(EasyTransilien::Line).should be_true
  end

  it 'should get 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.should eq(1)
    station.codes[0].is_a?(String).should be_true
    station.codes[0].should eql('J')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
easy_transilien-0.0.2 spec/station_spec.rb