Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 01:10:28 +01:00
Fix failing rspec test
Dieser Commit ist enthalten in:
Ursprung
42517c094e
Commit
44f078caff
2 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
|
@ -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) }
|
||||
|
|
5
spec/fixtures/subscription_client.rb
gevendort
5
spec/fixtures/subscription_client.rb
gevendort
|
@ -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
|
||||
|
|
Laden …
In neuem Issue referenzieren