diff options
| author | Alban Peignier | 2018-04-25 09:57:15 +0200 | 
|---|---|---|
| committer | Alban Peignier | 2018-04-25 09:57:15 +0200 | 
| commit | b4a671a860ac78164c9edc38d1fef305b3c3dd96 (patch) | |
| tree | d022f0985cc3688205b6d471fee6919ab0207b99 /spec/models/custom_field_spec.rb | |
| parent | b6c7651ff0974b9504235e949788a01eb95e9746 (diff) | |
| download | chouette-core-b4a671a860ac78164c9edc38d1fef305b3c3dd96.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/custom_field_spec.rb')
| -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| | 
