Avoid confusing cast by passing an actual boolean

"5" casts to false or true depending on Rails versions (4 or 5),
so we avoid that entirely.
pull/3606/head
Mohamed Wael Khobalatte 9 years ago
parent c885551329
commit 8015984218
  1. 2
      spec/helpers/work_packages_helper_spec.rb

@ -237,7 +237,7 @@ describe WorkPackagesHelper, type: :helper do
let(:stub_custom_value) do
FactoryGirl.build_stubbed(:work_package_custom_value, customized: stub_work_package,
custom_field: stub_custom_field,
value: '5')
value: true)
end
it 'should show the field name unchanged' do

Loading…
Cancel
Save