blob: 506da2148e1bd19fde7282aaec39950cf9425ae6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
require 'stif/netex_file'
RSpec.describe STIF::NetexFile::Frame do
context "line object id extraction" do
it "gets the line object id if frame describes a line" do
expect( described_class.get_short_id('offre_C00109_10.xml') ).to eq('C00109')
end
it "gets nil if the frame does not describe a line" do
expect( described_class.get_short_id('commun.xml') ).to be_nil
end
end
end
|