From f4c5751a4037f52ab1d73fc201e81ba07798ecd4 Mon Sep 17 00:00:00 2001 From: Xinhui Date: Thu, 9 Mar 2017 12:10:18 +0100 Subject: Sync Reflex ObjectStatus into StopArea stif_type Refs #2737 --- spec/tasks/reflex_rake_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spec/tasks') diff --git a/spec/tasks/reflex_rake_spec.rb b/spec/tasks/reflex_rake_spec.rb index ab1aefc7d..04c5886aa 100644 --- a/spec/tasks/reflex_rake_spec.rb +++ b/spec/tasks/reflex_rake_spec.rb @@ -23,6 +23,11 @@ describe 'reflex:sync' do expect(access.stop_area.name).to eq 'First stopPlace children' end + it 'should store object_status on stif_type attribute' do + stop_area = Chouette::StopArea.find_by(name: 'Second StopPlace children') + expect(stop_area.stif_type).to eq 'REFERENCE_OBJECT' + end + it 'should save hierarchy' do stop_area = Chouette::StopArea.find_by(name: 'First stopPlace children') expect(stop_area.parent.name).to eq 'First stopPlace' -- cgit v1.2.3