test/pagarme/resources/subscription_test.rb in pagarme-2.3.0 vs test/pagarme/resources/subscription_test.rb in pagarme-2.4.0

- old
+ new

@@ -10,13 +10,14 @@ assert_subscription_created subscription, plan end should 'be able to see subscription transactions' do plan = PagarMe::Plan.create no_trial_plan_params - subscription = PagarMe::Subscription.create subscription_with_customer_params(plan: plan) + subscription = PagarMe::Subscription.create subscription_with_customer_with_card_params(plan: plan) assert_no_trial_subscription_created subscription, plan - sleep 2 + sleep 5 + assert subscription.transactions.count > 0 assert_equal subscription.transactions.first.status, 'paid' end should 'be able to create subscription with plan and unsaved card' do