Fix stubbed spec now that default_value is plucked from DB

fix/43085/default-cf-value-filter
Oliver Günther 2 years ago
parent 85b629522c
commit 3f40cb003e
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 2
      spec/lib/custom_field_form_builder_spec.rb

@ -230,7 +230,7 @@ describe CustomFieldFormBuilder do
context 'which is required and a default value' do
before do
custom_field.is_required = true
custom_option.default_value = true
allow(custom_field).to receive(:default_value).and_return custom_option.id
end
it 'outputs element' do

Loading…
Cancel
Save