spec/lib/opay/providers/payu_spec.rb in opay-1.0.6 vs spec/lib/opay/providers/payu_spec.rb in opay-1.0.7
- old
+ new
@@ -65,10 +65,11 @@
context 'online' do
subject { Providers::Payu }
before do
@order = Order.create! name: 'first order', amount: 1000 # 10 zł
- @order.create_payment!(session_id: @order.payment_session_id, provider: 'payu', amount: @order.amount)
+ @order.prepare_payment
+ # @order.create_payment!(session_id: @order.payment_session_id, provider: 'payu', amount: @order.amount)
end
it 'valid payment' do
payment_info = {
pos_id: Opay.config.pos_id,