From 259c0b586feef448513421c3910b942f002a36b0 Mon Sep 17 00:00:00 2001 From: cedricnjanga Date: Thu, 8 Mar 2018 22:11:15 -0800 Subject: Refs #6028 small changes in model attribute for CC --- spec/lib/model_attribute_spec.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'spec/lib') 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 -- cgit v1.2.3