0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-25 18:50:27 +01:00

Fix failing rspec test

Dieser Commit ist enthalten in:
Angus McLeod 2023-05-04 17:25:10 +02:00
Ursprung 42517c094e
Commit 44f078caff
2 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -83,6 +83,7 @@ describe CustomWizard::Subscription do
result.supplier = SubscriptionClientSupplier.new(product_slugs) result.supplier = SubscriptionClientSupplier.new(product_slugs)
result.resource = SubscriptionClientResource.new result.resource = SubscriptionClientResource.new
result.subscriptions = [SubscriptionClientSubscription.new(product_id)] result.subscriptions = [SubscriptionClientSubscription.new(product_id)]
result.products = product_slugs
result result
end end
let!(:business_subscription_result) { get_subscription_result(business_product_id) } let!(:business_subscription_result) { get_subscription_result(business_product_id) }

Datei anzeigen

@ -29,10 +29,11 @@ module SubscriptionClient
class Result class Result
attr_accessor :supplier, attr_accessor :supplier,
:resource, :resource,
:subscriptions :subscriptions,
:products
def any? def any?
supplier.present? && resource.present? && subscriptions.present? supplier.present? && resource.present? && subscriptions.present? && products.present?
end end
end end
end end