fix error access

pull/6827/head
Jens Ulferts 7 years ago
parent fbbcf454f4
commit 77cd58a1b2
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 2
      spec/models/work_package/ask_before_destruction_spec.rb

@ -182,7 +182,7 @@ describe WorkPackage, type: :model do
it 'should set an error on work packages' do
action
expect(work_package.errors.get(:base)).to eq([I18n.t(:'activerecord.errors.models.work_package.nullify_is_not_valid_for_cost_entries')])
expect(work_package.errors[:base]).to eq([I18n.t(:'activerecord.errors.models.work_package.nullify_is_not_valid_for_cost_entries')])
end
end

Loading…
Cancel
Save