diff options
| author | Zog | 2018-05-11 10:47:42 +0200 |
|---|---|---|
| committer | Zog | 2018-05-11 10:47:42 +0200 |
| commit | 193b8419e3a4445d9c14536ca8a461685b6be415 (patch) | |
| tree | d16c8347e9a67e119b9f5abf4c701c2e7ae70139 /spec | |
| parent | 7b7a7b44a9c8d016e1c0cadc7b8f887de9dcac0a (diff) | |
| download | chouette-core-6852-make-capacity-optional.tar.bz2 | |
Refs #6852; Update Customfields6852-make-capacity-optional
Better validations for List with an hash as `list_values`
Diffstat (limited to 'spec')
| -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 0c2644499..5fbd19719 100644 --- a/spec/models/custom_field_spec.rb +++ b/spec/models/custom_field_spec.rb @@ -104,7 +104,7 @@ RSpec.describe CustomField, type: :model do if valid expect(vj.validate).to be_truthy else - expect(vj.validate).to be_falsy + expect(vj.validate).to be_falsy, "'#{val}' should not be valid value" expect(vj.errors.messages[:"custom_fields.energy"]).to be_present end end |
