Sha256: 9728287ad43d9325f8b056a7017905599ed231f45ec1e2ce686b76418a1352ea

Contents?: true

Size: 509 Bytes

Versions: 18

Compression:

Stored size: 509 Bytes

Contents

require 'spec_helper'

describe Highrise::Company do
  subject { Highrise::Company.new(:id => 1) }
  
  it { should be_a_kind_of Highrise::Base }
  it_should_behave_like "a paginated class"
  it_should_behave_like "a taggable class"
  it_should_behave_like "a searchable class"

  it "#people" do
    Highrise::Person.should_receive(:find_all_across_pages).with(:from=>"/companies/1/people.xml").and_return("people")
    subject.people.should == "people"
  end
  
  it { subject.label.should == 'Party' }
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
highrise-3.2.1 spec/highrise/company_spec.rb
highrise-3.1.6 spec/highrise/company_spec.rb
highrise-3.1.5 spec/highrise/company_spec.rb
highrise-3.1.2 spec/highrise/company_spec.rb
highrise-3.1.1 spec/highrise/company_spec.rb
highrise-3.1.0 spec/highrise/company_spec.rb
highrise-3.1.0.pre spec/highrise/company_spec.rb
highrise-3.0.5 spec/highrise/company_spec.rb
highrise-3.0.4 spec/highrise/company_spec.rb
highrise-3.0.3 spec/highrise/company_spec.rb
peterosullivan-highrise-3.0.7 spec/highrise/company_spec.rb
peterosullivan-highrise-3.0.6 spec/highrise/company_spec.rb
peterosullivan-highrise-3.0.5 spec/highrise/company_spec.rb
peterosullivan-highrise-3.0.4 spec/highrise/company_spec.rb
peterosullivan-highrise-3.0.3 spec/highrise/company_spec.rb
peterosullivan-highrise-3.0.2 spec/highrise/company_spec.rb
highrise-3.0.1 spec/highrise/company_spec.rb
highrise-3.0.0 spec/highrise/company_spec.rb