Sha256: 410731acf22ec88701957cf9f41edbd03fbd4c0eb4e038a49a15e43683050428

Contents?: true

Size: 476 Bytes

Versions: 12

Compression:

Stored size: 476 Bytes

Contents

require 'spec_helper'

describe BaseCRM::StagesService do
  describe 'Responds to' do
    subject { client.stages  }

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

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

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
basecrm-1.3.2 spec/services/stages_service_spec.rb
basecrm-1.3.1 spec/services/stages_service_spec.rb
basecrm-1.3.0 spec/services/stages_service_spec.rb
basecrm-1.2.3 spec/services/stages_service_spec.rb
basecrm-1.2.2 spec/services/stages_service_spec.rb
basecrm-1.2.1 spec/services/stages_service_spec.rb
basecrm-1.2.0 spec/services/stages_service_spec.rb
basecrm-1.1.3 spec/services/stages_service_spec.rb
basecrm-1.1.2 spec/services/stages_service_spec.rb
basecrm-1.1.1 spec/services/stages_service_spec.rb
basecrm-1.1.0 spec/services/stages_service_spec.rb
basecrm-1.0.0 spec/services/stages_service_spec.rb