From 4613f02d52e2d8c9159633b6a45b8d0361759332 Mon Sep 17 00:00:00 2001 From: Robert Date: Thu, 14 Dec 2017 17:58:57 +0100 Subject: Refs: #5006@0.7h; CR changes from #5006 & staring error_messages in imports/show - Renaming as requested STIF::NetexFile::Frame.get_line_object_id -> get_sgort_id - working on error_messages for imports#show --- spec/lib/stif/netex_file/frame_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/lib') diff --git a/spec/lib/stif/netex_file/frame_spec.rb b/spec/lib/stif/netex_file/frame_spec.rb index eb80e7b14..506da2148 100644 --- a/spec/lib/stif/netex_file/frame_spec.rb +++ b/spec/lib/stif/netex_file/frame_spec.rb @@ -3,11 +3,11 @@ 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_line_object_id('offre_C00109_10.xml') ).to eq('C00109') + 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_line_object_id('commun.xml') ).to be_nil + expect( described_class.get_short_id('commun.xml') ).to be_nil end end end -- cgit v1.2.3