test/pagarme/subscription.rb in pagarme-1.10.0 vs test/pagarme/subscription.rb in pagarme-2.0.0
- old
+ new
@@ -73,21 +73,9 @@
subscription.charge(1500, 3)
assert subscription.current_transaction.kind_of?(PagarMe::Transaction)
test_subscription_transaction_response(subscription.current_transaction, 1500, 3)
end
- should 'be able to search by anything' do
- subscription = test_subscription_with_customer
- subscription.create
-
- subscriptions = PagarMe::Subscription.find_by({'customer[name]' => 'Jose da Silva'})
- assert subscriptions.size
- subscriptions.each do |s|
- # puts s.inspect unless s.customer.name == 'Jose da Silva'
- # assert s.customer.name == 'Jose da Silva'
- end
- end
-
should 'be able to update subscription' do
subscription = test_subscription
subscription.create
subscription.payment_method = 'boleto'
subscription.save