From 2f555897bff3f8fa6dd5e9e0c6d48f0073edc349 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 19 Sep 2017 15:39:37 +0200 Subject: ModelAttribute spec: Allow test to handle existing elements in `@@all` When `ModelAttribute` instances are added to `@@all` directly in the class, the test breaks. Make it a little more robust by checking change in array size instead of total size. Refs #4401 --- lib/model_attribute.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/model_attribute.rb') diff --git a/lib/model_attribute.rb b/lib/model_attribute.rb index be5caea94..b1297d43d 100644 --- a/lib/model_attribute.rb +++ b/lib/model_attribute.rb @@ -14,4 +14,6 @@ class ModelAttribute @name = name @data_type = data_type end + + define :journey_pattern, :name, :string end -- cgit v1.2.3