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.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) }
|
||||||
|
|
5
spec/fixtures/subscription_client.rb
gevendort
5
spec/fixtures/subscription_client.rb
gevendort
|
@ -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
|
||||||
|
|
Laden …
In neuem Issue referenzieren