foodsoft/spec
Philipp Rothmann 33034e66b8 fix: add null checks for articles convert_units
Prevents division by zero exception because of a unit beeing 0.
A Unit becomes also zero e.g. when a comma symbol is used Unit.new("0,9kg") == 0

fixes #1014
2023-06-22 22:49:22 +02:00
..
controllers chore: rubocop 2023-06-09 17:35:05 +02:00
factories chore: rubocop 2023-06-09 17:35:05 +02:00
fixtures Add tests for upload 2015-04-11 02:52:57 +02:00
integration chore: rubocop 2023-06-09 17:35:05 +02:00
lib chore: rubocop 2023-06-09 17:35:05 +02:00
models fix: add null checks for articles convert_units 2023-06-22 22:49:22 +02:00
requests/api/v1 fix: invalid params request test 2023-06-17 13:31:43 +02:00
support chore: rubocop 2023-06-09 17:35:05 +02:00
app_config.yml Replace apivore with rswag for api tests (#969) 2023-05-12 11:11:48 +02:00
i18n_spec.rb Run rubocop --fix-layout and remove encoding comments 2021-03-02 09:12:19 +01:00
spec_helper.rb chore: rubocop 2023-06-09 17:35:05 +02:00
swagger_helper.rb chore: rubocop 2023-06-09 17:35:05 +02:00