From 44f078caffe30bf2755d4849843ef608334d7952 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Thu, 4 May 2023 17:25:10 +0200 Subject: [PATCH] Fix failing rspec test --- spec/components/custom_wizard/subscription_spec.rb | 1 + spec/fixtures/subscription_client.rb | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/components/custom_wizard/subscription_spec.rb b/spec/components/custom_wizard/subscription_spec.rb index a296dc6a..4829d83d 100644 --- a/spec/components/custom_wizard/subscription_spec.rb +++ b/spec/components/custom_wizard/subscription_spec.rb @@ -83,6 +83,7 @@ describe CustomWizard::Subscription do result.supplier = SubscriptionClientSupplier.new(product_slugs) result.resource = SubscriptionClientResource.new result.subscriptions = [SubscriptionClientSubscription.new(product_id)] + result.products = product_slugs result end let!(:business_subscription_result) { get_subscription_result(business_product_id) } diff --git a/spec/fixtures/subscription_client.rb b/spec/fixtures/subscription_client.rb index 051fbde4..146279b1 100644 --- a/spec/fixtures/subscription_client.rb +++ b/spec/fixtures/subscription_client.rb @@ -29,10 +29,11 @@ module SubscriptionClient class Result attr_accessor :supplier, :resource, - :subscriptions + :subscriptions, + :products def any? - supplier.present? && resource.present? && subscriptions.present? + supplier.present? && resource.present? && subscriptions.present? && products.present? end end end