diff options
| author | cedricnjanga | 2017-11-16 16:44:37 +0100 |
|---|---|---|
| committer | cedricnjanga | 2017-11-22 12:41:57 +0100 |
| commit | 31db1bba72800bddfa5dc9db4419ba95178dc4ff (patch) | |
| tree | e6bfb60e0f20ae71d3153fcc9a84be7b9680eb68 /spec | |
| parent | 7c032665a81d9b81f6267d9bb133e8f0ec3b9e21 (diff) | |
| download | chouette-core-31db1bba72800bddfa5dc9db4419ba95178dc4ff.tar.bz2 | |
Add Cédric new objectid concerns
objectid_support handles reading and writing object_ids
objectid_formater_support gets the right formater class
include these concerns in chouette models
Remove StifNetexAttributSupport modules because these are handled by the new objectid concerns
Add a objectid and formater classes for each format type
Add objectid formats to the factories
Modify somes specs for object_ids but there are still a number of failling tests
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/models/chouette/journey_pattern_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/chouette/journey_pattern_spec.rb b/spec/models/chouette/journey_pattern_spec.rb index d631511a3..a3017ee7a 100644 --- a/spec/models/chouette/journey_pattern_spec.rb +++ b/spec/models/chouette/journey_pattern_spec.rb @@ -70,7 +70,7 @@ describe Chouette::JourneyPattern, :type => :model do end it 'should create journey_pattern' do - new_state = journey_pattern_to_state(build(:journey_pattern, objectid: nil, route: route)) + new_state = journey_pattern_to_state(create(:journey_pattern, route: route)) Chouette::JourneyPattern.state_create_instance route, new_state expect(new_state['object_id']).to be_truthy expect(new_state['new_record']).to be_truthy |
