From 694dc061bee8e86a29e67340605547c822d92a12 Mon Sep 17 00:00:00 2001 From: Brendan Deere Date: Wed, 12 Oct 2016 10:16:04 -0700 Subject: Only process consolidated installments for the same user Consolidated installments make the assumption that all installments passed in share the same user. This is a critical assumption that I feel merrits a validation. An error will be raised with the ids of the installments which were attempted to be consolidated. --- spec/jobs/solidus_subscriptions/process_installments_job_spec.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'spec/jobs') diff --git a/spec/jobs/solidus_subscriptions/process_installments_job_spec.rb b/spec/jobs/solidus_subscriptions/process_installments_job_spec.rb index 31a9af6..56b8b4d 100644 --- a/spec/jobs/solidus_subscriptions/process_installments_job_spec.rb +++ b/spec/jobs/solidus_subscriptions/process_installments_job_spec.rb @@ -5,6 +5,7 @@ RSpec.describe SolidusSubscriptions::ProcessInstallmentsJob do let(:installments) do traits = { subscription_traits: [{ + user: root_order.user, line_item_traits: [{ spree_line_item: root_order.line_items.first }] -- cgit v1.2.3