Sha256: 10cd5076f1a0d865eb24eebcef12e777863ef7f97346f39787a8c380e27d6638
Contents?: true
Size: 586 Bytes
Versions: 3
Compression:
Stored size: 586 Bytes
Contents
require 'spec_helper' describe PipelineDeals::Company do it_should_behave_like "a paginated collection" let(:docs_obj) { company } let(:people_obj) { company } it_should_behave_like "an object that can have documents" it_should_behave_like "an object that can have people" let(:company) { VCR.use_cassette(:get_a_company) { PipelineDeals::Company.find 3 } } it "has many deals" do VCR.use_cassette(:company_deals) do expect(company.deals.size).to eq 1 expect(company.deals.first.name).to eq "disintermediate value-added technologies" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pipeline_deals-0.5.0 | spec/pipeline_deals/companies_spec.rb |
pipeline_deals-0.4.0 | spec/pipeline_deals/companies_spec.rb |
pipeline_deals-0.3.0 | spec/pipeline_deals/companies_spec.rb |