From 3297e5e6ffa16f8f275599bc0a447a5968fa649d Mon Sep 17 00:00:00 2001 From: Florian Lentsch Date: Fri, 26 Jul 2024 16:59:03 +0200 Subject: [PATCH] Fix unit tests (broken since 3871c37a06f956ab897828e35e75c794d6c7bf53) --- spec/integration/articles_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/integration/articles_spec.rb b/spec/integration/articles_spec.rb index ad9cb8d5..0e6b12f8 100644 --- a/spec/integration/articles_spec.rb +++ b/spec/integration/articles_spec.rb @@ -157,7 +157,7 @@ end describe 'can update existing article' do - let!(:article) { create(:article, supplier: supplier, name: 'Foobar', order_number: 1, unit: '250 g', group_order_unit: nil) } + let!(:article) { create(:article, supplier: supplier, name: 'Foobar', order_number: 1, unit: '250 g', group_order_unit: nil, price_unit: nil) } it do find('input[type="submit"]').click @@ -198,7 +198,7 @@ end describe 'can convert units when updating' do - let!(:article) { create(:article, supplier: supplier, order_number: 1, unit: '250 g', group_order_unit: nil) } + let!(:article) { create(:article, supplier: supplier, order_number: 1, unit: '250 g', group_order_unit: nil, price_unit: nil) } it do check('articles_convert_units')