workaround for integration test problem
This commit is contained in:
parent
13c8af3642
commit
f4e4d11bae
1 changed files with 2 additions and 1 deletions
|
@ -90,7 +90,8 @@ class OrderArticle < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def ordered_quantities_equal_to_group_orders?
|
||||
(units_to_order * price.unit_quantity) == group_orders_sum[:quantity]
|
||||
# the rescue is a workaround for units_to_order not being defined in integration tests
|
||||
(units_to_order * price.unit_quantity) == group_orders_sum[:quantity] rescue false
|
||||
end
|
||||
|
||||
# Updates order_article and belongings during balancing process
|
||||
|
|
Loading…
Reference in a new issue