diff options
| author | Teddy Wing | 2017-09-19 18:16:16 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-09-19 18:16:16 +0200 |
| commit | 5b437302c3cbc90f920de11169f249658c23a5ee (patch) | |
| tree | 30207b79734f2247dc6dce5992ded324bc2217ec /spec/lib/model_attribute_spec.rb | |
| parent | a60bf813aa118648998093242d6db0e1d8613e76 (diff) | |
| download | chouette-core-5b437302c3cbc90f920de11169f249658c23a5ee.tar.bz2 | |
ModelAttribute.methods_by_class: Take symbol parameter instead of string
Didn't like how `#initialize` takes a different type for `klass` than
`.methods_by_class`. Make these types and values uniform. If we need to
change it, we should make a separate mechanism to do so. I think.
Refs #4401
Diffstat (limited to 'spec/lib/model_attribute_spec.rb')
| -rw-r--r-- | spec/lib/model_attribute_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/model_attribute_spec.rb b/spec/lib/model_attribute_spec.rb index 73114ae1e..8463d12fe 100644 --- a/spec/lib/model_attribute_spec.rb +++ b/spec/lib/model_attribute_spec.rb @@ -23,7 +23,7 @@ RSpec.describe ModelAttribute do ModelAttribute.new(:journey_pattern, :name, :string) ]) - expect(ModelAttribute.methods_by_class('Route')).to match_array([ + 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) |
