diff options
| author | Alban Peignier | 2018-04-25 09:57:15 +0200 |
|---|---|---|
| committer | Johan Van Ryseghem | 2018-04-25 15:46:33 +0200 |
| commit | a3d6290d8814817538a1e903aace873f59df7a96 (patch) | |
| tree | bad02087cba9f0d90e1e96e0dadf025aa45e2109 /spec/models | |
| parent | 91f253454d261767b9a9c9d5a328b3c6d149cee9 (diff) | |
| download | chouette-core-a3d6290d8814817538a1e903aace873f59df7a96.tar.bz2 | |
Make mandatory workgroup for class method custom_fields (not available for Company or StopArea for exemple). Refs #6669
Diffstat (limited to 'spec/models')
| -rw-r--r-- | spec/models/custom_field_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/custom_field_spec.rb b/spec/models/custom_field_spec.rb index b0aa0ff1e..2b561e739 100644 --- a/spec/models/custom_field_spec.rb +++ b/spec/models/custom_field_spec.rb @@ -30,7 +30,7 @@ RSpec.describe CustomField, type: :model do "energy" => fields[1].slice(:code, :name, :field_type, :options).update(value: 99) } } - it { expect(Chouette::VehicleJourney.custom_fields).to eq(fields) } + it { expect(Chouette::VehicleJourney.custom_fields(workgroup)).to eq(fields) } it { instance_fields.each do |code, cf| cf.each do |k, v| |
