Sha256: 341d4da014b2712945bff770aea5885762cd38bd6c5fbf7643caade3db622700
Contents?: true
Size: 642 Bytes
Versions: 2
Compression:
Stored size: 642 Bytes
Contents
require "spec_helper" describe 'Espago.invoices' do it "should get list of invoices" do VCR.use_cassette('invoices get') do response = Espago.invoices :get response.count.should eq(1) response.invoices.size.should eq(1) end end it "should get info abount invoices" do VCR.use_cassette('invoices get in_tUCMhwlg2nkvAaL') do response = Espago.invoices :get,{invoice_id:'in_tUCMhwlg2nkvAaL'} response.paid.should eq(true) response.client.should eq('cli_90Pi6Jf0ndl_PP') response.amount.should eq('123.45') response.created_at.should eq Time.at(1417030497) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
espago-0.1.8 | spec/features/invoices_spec.rb |
espago-0.1.2 | spec/features/invoices_spec.rb |