Sha256: 09bc3e8e6f883cd3094166aa18583256f0d81dd8c2e45f89cb958416d1aa03b2

Contents?: true

Size: 750 Bytes

Versions: 3

Compression:

Stored size: 750 Bytes

Contents

require 'test_helper'

class CompanyTest < Test::Unit::TestCase
  
  fake_it_all
    
  context "Invoice timeline" do
    setup do
      @inv_timeline = Company.invoice_timeline
    end
    should "return an array" do
      assert @inv_timeline.is_a? Array
    end
    should "return invoice timeline items" do
      assert_equal 12, @inv_timeline.size
      assert @inv_timeline.first.is_a? InvoiceTimeline
    end    
  end
  
  context "Tax timeline" do
    setup do
      @tax_timeline = Company.tax_timeline
    end
    should "return an array" do
      assert @tax_timeline.is_a? Array
    end
    should "return projects" do
      assert_equal 3, @tax_timeline.size
      assert @tax_timeline.first.is_a? TaxTimeline
    end    
  end
    
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
freeagent_api-0.3.1 test/company_test.rb
freeagent_api-0.3.0 test/company_test.rb
freeagent_api-0.2.0 test/company_test.rb