Sha256: fe654a21fe376dce44abb6231f050465dc355097ab9b8b26a927e5fc7eb507d5

Contents?: true

Size: 583 Bytes

Versions: 1

Compression:

Stored size: 583 Bytes

Contents

require "spec_helper"

describe 'Espago.dcc_decision' do

  it "should get params from new charge" do
    VCR.use_cassette('dcc_decision post') do
      response = Espago.dcc_decision :post, {charge_id:'pay_mTOngouLTJWZ0w', decision:'Y'}
      response.status.should eq(201)
      response.channel.should eq('elavon')
      response.state.should eq('executed')
      response.currency.should eq('PLN')
      response.description.should eq('Test12345')
      response.client.should eq('cli_YM5tKz6-IfhN7T')
      response.created_at.should eq Time.at(1416917311)
    end
  end


end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
espago-0.1.8 spec/features/dcc_decision_spec.rb