diff options
| author | Luc Donnet | 2018-03-15 09:28:58 +0100 |
|---|---|---|
| committer | GitHub | 2018-03-15 09:28:58 +0100 |
| commit | a5aa73e7c0c097b86b63fb31bb46b75ac1b31a8b (patch) | |
| tree | 188922b4ccee8790a1c885aea67e73c17c0ca21c /spec/lib/model_attribute_spec.rb | |
| parent | ff1c38086264ed301a2338c3b12f7d69eb4096d9 (diff) | |
| parent | 259c0b586feef448513421c3910b942f002a36b0 (diff) | |
| download | chouette-core-a5aa73e7c0c097b86b63fb31bb46b75ac1b31a8b.tar.bz2 | |
Merge pull request #364 from af83/6028-compliance-controls-model-attributes
Refs #6028 small changes in model attribute for CC
Diffstat (limited to 'spec/lib/model_attribute_spec.rb')
| -rw-r--r-- | spec/lib/model_attribute_spec.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/lib/model_attribute_spec.rb b/spec/lib/model_attribute_spec.rb index cdba87a90..6da740dcb 100644 --- a/spec/lib/model_attribute_spec.rb +++ b/spec/lib/model_attribute_spec.rb @@ -22,12 +22,10 @@ RSpec.describe ModelAttribute do it "returns the list of classes of ModelAttributes in .all" do ModelAttribute.define(:route, :name, :string) ModelAttribute.define(:journey_pattern, :name, :string) - ModelAttribute.define(:time_table, :start_date, :date) expect(ModelAttribute.classes).to match_array([ 'Route', 'JourneyPattern', - 'TimeTable' ]) end end @@ -68,13 +66,13 @@ RSpec.describe ModelAttribute do it "returns all ModelAttributes for a given class" do ModelAttribute.define(:route, :name, :string) ModelAttribute.define(:route, :published_name, :string) - ModelAttribute.define(:route, :direction, :string) + ModelAttribute.define(:route, :wayback, :string) ModelAttribute.define(:journey_pattern, :name, :string) expect(ModelAttribute.methods_by_class(:route)).to match_array([ ModelAttribute.new(:route, :name, :string), ModelAttribute.new(:route, :published_name, :string), - ModelAttribute.new(:route, :direction, :string) + ModelAttribute.new(:route, :wayback, :string) ]) end end |
