test/pagarme/subscription.rb in pagarme-1.0 vs test/pagarme/subscription.rb in pagarme-1.1
- old
+ new
@@ -23,7 +23,18 @@
subscription.transactions.each do |t|
test_subscription_transaction_response(t)
end
end
+
+ # should 'be able to pass metadata to subscription' do
+ # subscription = test_subscription
+ # subscription.metadata = {:event => {:event_name => "Evento 2 ", :id => 13}}
+ # subscription.create
+
+ # subscription2 = PagarMe::Subscription.find_by_id(subscription.id)
+ # assert subscription2.id == subscription.id
+ # assert subscription2.metadata.event.event_name == 'Evento 2'
+ # assert subscription2.metadata.event.id == 13
+ # end
end
end