diff options
| author | cedricnjanga | 2018-03-08 22:11:15 -0800 |
|---|---|---|
| committer | cedricnjanga | 2018-03-08 22:11:33 -0800 |
| commit | 259c0b586feef448513421c3910b942f002a36b0 (patch) | |
| tree | 07c5e559367851c227326bcc331af7cc7a407fc6 /spec | |
| parent | 186662b9ef2e996ec649298debb3df352f9849bf (diff) | |
| download | chouette-core-259c0b586feef448513421c3910b942f002a36b0.tar.bz2 | |
Refs #6028 small changes in model attribute for CC6028-compliance-controls-model-attributes
Diffstat (limited to 'spec')
| -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 |
