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')