aboutsummaryrefslogtreecommitdiffstats
path: root/spec/tasks
diff options
context:
space:
mode:
authorXinhui2017-03-09 12:10:18 +0100
committerXinhui2017-03-09 12:10:18 +0100
commitf4c5751a4037f52ab1d73fc201e81ba07798ecd4 (patch)
treefdc4cba66793aa0e54ccd3aba8b564b8b2c617e3 /spec/tasks
parentb1351a0ce13e1c86584640a204ed8e1c32f5dd36 (diff)
downloadchouette-core-f4c5751a4037f52ab1d73fc201e81ba07798ecd4.tar.bz2
Sync Reflex ObjectStatus into StopArea stif_type
Refs #2737
Diffstat (limited to 'spec/tasks')
-rw-r--r--spec/tasks/reflex_rake_spec.rb5
1 files changed, 5 insertions, 0 deletions
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'