Sha256: 0edfd7c167c58a6c1c601c604e3729f7942692b8628ad9b8eb596e6389fb067d

Contents?: true

Size: 505 Bytes

Versions: 7

Compression:

Stored size: 505 Bytes

Contents

require 'spec_helper'

describe BaseCRM::VisitOutcomesService do
  describe 'Responds to' do
    subject { client.visit_outcomes  }

    it { should respond_to :all }
    it { should respond_to :where }
  end

  describe :all do
    it "returns a PaginatedResource" do
      expect(client.visit_outcomes.all()).to be_instance_of BaseCRM::PaginatedResource
    end
  end

  describe :where do
    it "returns an array" do
      expect(client.visit_outcomes.where(page: 1)).to be_an Array
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
basecrm-2.0.0 spec/services/visit_outcomes_service_spec.rb
basecrm-1.3.10 spec/services/visit_outcomes_service_spec.rb
basecrm-1.3.9 spec/services/visit_outcomes_service_spec.rb
basecrm-1.3.8 spec/services/visit_outcomes_service_spec.rb
basecrm-1.3.7 spec/services/visit_outcomes_service_spec.rb
basecrm-1.3.6 spec/services/visit_outcomes_service_spec.rb
basecrm-1.3.5 spec/services/visit_outcomes_service_spec.rb