Sha256: 822475c5d4b4fe29b68ba7135b6ea212a61d9e5e6f0c1ee905a7b832be445046

Contents?: true

Size: 529 Bytes

Versions: 11

Compression:

Stored size: 529 Bytes

Contents

require 'test_helper'

class Kaui::ChargebacksControllerTest < Kaui::FunctionalTestHelper

  test 'should get index' do
    get :new, :payment_id => @payment.payment_id
    assert_response 200
  end

  test 'should create payment methods' do
    post :create,
         :chargeback      => {
             :payment_id => @payment.payment_id,
             :amount     => @payment.paid_amount_to_money.to_f,
             :currency   => @payment.currency
         },
         :cancel_all_subs => '1'
    assert_response 302
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
kaui-0.11.0 test/functional/kaui/chargebacks_controller_test.rb
kaui-0.10.0 test/functional/kaui/chargebacks_controller_test.rb
kaui-0.9.0 test/functional/kaui/chargebacks_controller_test.rb
kaui-0.8.4 test/functional/kaui/chargebacks_controller_test.rb
kaui-0.8.3 test/functional/kaui/chargebacks_controller_test.rb
kaui-0.8.2 test/functional/kaui/chargebacks_controller_test.rb
kaui-0.8.1 test/functional/kaui/chargebacks_controller_test.rb
kaui-0.8.0 test/functional/kaui/chargebacks_controller_test.rb
kaui-0.7.2 test/functional/kaui/chargebacks_controller_test.rb
kaui-0.7.1 test/functional/kaui/chargebacks_controller_test.rb
kaui-0.7.0 test/functional/kaui/chargebacks_controller_test.rb