diff --git a/core/app/models/concerns/spree/user_reporting.rb b/core/app/models/concerns/spree/user_reporting.rb index c111fb263f1..a31f589bc22 100644 --- a/core/app/models/concerns/spree/user_reporting.rb +++ b/core/app/models/concerns/spree/user_reporting.rb @@ -10,7 +10,7 @@ def lifetime_value end def order_count - BigDecimal(spree_orders.complete.count) + spree_orders.complete.count end def average_order_value diff --git a/core/spec/models/spree/user_spec.rb b/core/spec/models/spree/user_spec.rb index 493b44cc960..e4b067cd4cc 100644 --- a/core/spec/models/spree/user_spec.rb +++ b/core/spec/models/spree/user_spec.rb @@ -142,7 +142,7 @@ def load_orders describe "#order_count" do before { load_orders } it "returns the count of completed orders for the user" do - expect(subject.order_count).to eq BigDecimal(order_count) + expect(subject.order_count).to eq order_count end end