Sha256: 2ab9c15f6c58d30ccf5492c8565a6fc15ba8a6d9f8807dcc56771821fb4d28b0

Contents?: true

Size: 1.27 KB

Versions: 6

Compression:

Stored size: 1.27 KB

Contents

require File.dirname(__FILE__) + '/spec_helper.rb'
require File.dirname(__FILE__) + '/shared_journal_entry_spec'

describe Etapper::Gift do
  @api_methods = %w{
      amount
      nonDeductibleAmount
      fund
      campaign
      approach
      letter
      receipt
      tributeAccountRef
      tributeAccountName
      recognitionName
      recognitionType
      offsettingRef
      segmentedTransactionRef
      originalAccountRef
      originalAccountName
      originalTransactionRef
    }
  
  @api_readonly_methods = %w{
      tributeAccountRef
      tributeAccountName
      offsettingRef
      segmentedTransactionRef
      originalAccountRef
      originalAccountName
      originalTransactionRef
    }
  
  before(:all) do
    @api_collection = YAML.load_file(File.dirname(__FILE__) + '/fixtures/gifts_api.yml')
    @api_object = @api_collection.data.first
    @api_accounts = YAML.load_file(File.dirname(__FILE__) + '/fixtures/accounts_api.yml')
    @api_account = Etapper::Account.new(@api_accounts['MashalSaif'])
  end

  before(:each) do
    @dummy.stubs(:getGift).with("1441.0.23787729").returns(@api_object)
    @dummy.stubs(:getJournalEntries).returns(@api_object)
    @this = Etapper::Gift.new(@api_object)
  end

  it_should_behave_like "a Journal Entry class"
  


  



end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
etapper-0.0.5 spec/gift_spec.rb
etapper-0.0.4 spec/gift_spec.rb
etapper-0.0.3 spec/gift_spec.rb
etapper-0.0.2 spec/gift_spec.rb
etapper-0.0.1 spec/gift_spec.rb
etapper-0.0.0 spec/gift_spec.rb