diff options
| author | Teddy Wing | 2017-09-19 15:39:37 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-09-19 16:12:55 +0200 |
| commit | 2f555897bff3f8fa6dd5e9e0c6d48f0073edc349 (patch) | |
| tree | 330d0e36000cefd4265bf211b2ad7131f31af187 /lib | |
| parent | 8e8cfa6c52ff8fc2a655b768db5baafed40c1a2d (diff) | |
| download | chouette-core-2f555897bff3f8fa6dd5e9e0c6d48f0073edc349.tar.bz2 | |
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
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/model_attribute.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
