test/pagarme/resources/plan_test.rb in pagarme-2.1.2 vs test/pagarme/resources/plan_test.rb in pagarme-2.1.3

- old
+ new

@@ -1,9 +1,9 @@ require_relative '../../test_helper' module PagarMe - class PlanTest < Test::Unit::TestCase + class PlanTest < PagarMeTestCase should 'be able to create a plan' do plan = PagarMe::Plan.create plan_params assert_plan_created plan end @@ -15,11 +15,10 @@ plan.save assert_equal plan.name, 'plano bronze' end should 'be able to search by anything' do - plan = PagarMe::Plan.create plan_params - assert_plan_created plan + assert_plan_created PagarMe::Plan.create(plan_params) # find_by_hash is possibly consistent, wait to try to ensure!!! sleep 1 found_plans = PagarMe::Plan.find_by trial_days: 5