Sha256: 397b4b3d6f3f10e488fb467d96175695f8c601643b6651b0ec7777ea4d76bb1f

Contents?: true

Size: 788 Bytes

Versions: 44

Compression:

Stored size: 788 Bytes

Contents

require 'test_helper'

class ReportDefinitionTest < Test::Unit::TestCase
  include TestHelper
  
  def setup
    @client = Xeroizer::PublicApplication.new(CONSUMER_KEY, CONSUMER_SECRET)
  end
  
  context "report definitions" do
    
    should "be defined correctly" do
      [ 
        :AgedPayablesByContact, :AgedReceivablesByContact, :BalanceSheet, :BankStatement, :BankSummary,
        :BudgetSummary, :ExecutiveSummary, :ProfitAndLoss, :TrialBalance
      ].each do | report_type |
        report_factory = @client.send(report_type)
        assert_kind_of(Xeroizer::Report::Factory, report_factory)
        assert_kind_of(Xeroizer::GenericApplication, report_factory.application)
        assert_equal(report_type.to_s, report_factory.report_type)
      end
    end
    
  end

end

Version data entries

44 entries across 44 versions & 2 rubygems

Version Path
xeroizer-float-2.15.3.12 test/unit/report_definition_test.rb
xeroizer-float-2.15.3.11 test/unit/report_definition_test.rb
xeroizer-float-2.15.3.10 test/unit/report_definition_test.rb
xeroizer-float-2.15.3.9 test/unit/report_definition_test.rb
xeroizer-float-2.15.3.8 test/unit/report_definition_test.rb
xeroizer-float-2.15.3.7 test/unit/report_definition_test.rb
xeroizer-float-2.15.3.6 test/unit/report_definition_test.rb
xeroizer-float-2.15.3.5 test/unit/report_definition_test.rb
xeroizer-float-2.15.3.4 test/unit/report_definition_test.rb
xeroizer-float-2.15.3.3 test/unit/report_definition_test.rb
xeroizer-float-2.15.3.2 test/unit/report_definition_test.rb
xeroizer-float-2.15.3.1 test/unit/report_definition_test.rb
xeroizer-2.15.3 test/unit/report_definition_test.rb
xeroizer-2.15.2 test/unit/report_definition_test.rb
xeroizer-2.15.1 test/unit/report_definition_test.rb
xeroizer-2.15.0 test/unit/report_definition_test.rb
xeroizer-0.5.2 test/unit/report_definition_test.rb
xeroizer-0.5.1 test/unit/report_definition_test.rb
xeroizer-0.5.0 test/unit/report_definition_test.rb
xeroizer-0.4.4 test/unit/report_definition_test.rb