test/pagarme/resources/plan_test.rb in pagarme-2.3.0 vs test/pagarme/resources/plan_test.rb in pagarme-2.4.0
- old
+ new
@@ -18,10 +18,11 @@
should 'be able to search by anything' do
assert_plan_created PagarMe::Plan.create(plan_params)
# find_by_hash is possibly consistent, wait to try to ensure!!!
- sleep 1
+ sleep 5
+
found_plans = PagarMe::Plan.find_by trial_days: 5
assert found_plans.size > 0
found_plans.each do |plan|
assert_equal plan.trial_days, 5