Sha256: 5f9eba250a15ff6dddadb4bd04143818490193d9185072e3358342dcf52d5cad

Contents?: true

Size: 486 Bytes

Versions: 9

Compression:

Stored size: 486 Bytes

Contents

require 'spec_helper'

describe BaseCRM::PipelinesService do
  describe 'Responds to' do
    subject { client.pipelines  }

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

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

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