Sha256: 21f3d5d7e4080bac54c4c75be9a6e925f688dd22dd814c475487e33ad9ecf303

Contents?: true

Size: 346 Bytes

Versions: 13

Compression:

Stored size: 346 Bytes

Contents

require 'spec_helper'

describe Chargify::Statement, :fake_resource do

  context '.find_pdf' do
    before(:each) do
      FakeWeb.register_uri(:get, "#{test_domain}/statements/1.pdf", :body => 'fake_pdf')
    end

    it 'downloads pdf statement' do
      pdf = Chargify::Statement.find_pdf(1)
      pdf.should == 'fake_pdf'
    end
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
chargify_api_ares-1.4.15 spec/resources/statement_spec.rb
chargify_api_ares-1.4.14 spec/resources/statement_spec.rb
chargify_api_ares-1.4.13 spec/resources/statement_spec.rb
chargify_api_ares-1.4.11 spec/resources/statement_spec.rb
chargify_api_ares-1.4.10 spec/resources/statement_spec.rb
chargify_api_ares-1.4.7 spec/resources/statement_spec.rb
chargify_api_ares-1.4.6 spec/resources/statement_spec.rb
chargify_api_ares-1.4.5 spec/resources/statement_spec.rb
chargify_api_ares-1.4.4 spec/resources/statement_spec.rb
chargify_api_ares-1.4.3 spec/resources/statement_spec.rb
chargify_api_ares-1.4.2 spec/resources/statement_spec.rb
chargify_api_ares-1.4.1 spec/resources/statement_spec.rb
chargify_api_ares-1.4.0 spec/resources/statement_spec.rb