diff options
| author | Zog | 2018-04-03 21:53:42 +0200 |
|---|---|---|
| committer | Johan Van Ryseghem | 2018-04-04 11:12:34 +0200 |
| commit | f0f619353c23775613fe154cb40d54cb55c979bb (patch) | |
| tree | c0f2f57124dae9b0e77dc49162d5dac1f832d3a3 | |
| parent | 25be8ebc3dd4de7fa8b8af0e90cfc22e59fc104c (diff) | |
| download | chouette-core-f0f619353c23775613fe154cb40d54cb55c979bb.tar.bz2 | |
Fix specs
| -rw-r--r-- | spec/models/custom_field_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/models/custom_field_spec.rb b/spec/models/custom_field_spec.rb index 79457188f..1dfe6d33c 100644 --- a/spec/models/custom_field_spec.rb +++ b/spec/models/custom_field_spec.rb @@ -47,6 +47,7 @@ RSpec.describe CustomField, type: :model do let!(:field){ [create(:custom_field, code: :energy, field_type: 'list', options: {list_values: %w(foo bar baz)})] } let!( :vj ){ create :vehicle_journey, custom_field_values: {energy: "1"} } it "should cast the value" do + p vj.custom_fields expect(vj.custom_fields[:energy].value).to eq 1 expect(vj.custom_fields[:energy].display_value).to eq "bar" end |
