Sha256: d8d7f9f480743ad1261d3b41e318e019698969564b146a1cb34c7c1acca37a0b

Contents?: true

Size: 669 Bytes

Versions: 12

Compression:

Stored size: 669 Bytes

Contents

require 'spec_helper'
require 'git_helper'

describe GitHelper::GitLabClient do
  let(:git_config_reader) { double(:git_config_reader, gitlab_token: :token) }

  subject { GitHelper::GitLabClient.new }

  before do
    allow(GitHelper::GitConfigReader).to receive(:new).and_return(git_config_reader)
  end

  describe '#client' do
    it 'should call the GitLab client to make a new client' do
      expect(Gitlab).to receive(:client)
      subject.client
    end
  end

  describe '#git_config_reader' do
    it 'should make a new git config reader' do
      expect(GitHelper::GitConfigReader).to receive(:new)
      subject.send(:git_config_reader)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
git_helper-3.3.1 spec/git_helper/gitlab_client_spec.rb
git_helper-3.3.0 spec/git_helper/gitlab_client_spec.rb
git_helper-3.2.2 spec/git_helper/gitlab_client_spec.rb
git_helper-3.2.1 spec/git_helper/gitlab_client_spec.rb
git_helper-3.2.0 spec/git_helper/gitlab_client_spec.rb
git_helper-3.1.3 spec/git_helper/gitlab_client_spec.rb
git_helper-3.1.2 spec/git_helper/gitlab_client_spec.rb
git_helper-3.1.0 spec/git_helper/gitlab_client_spec.rb
git_helper-3.0.1 spec/git_helper/gitlab_client_spec.rb
git_helper-3.0.0 spec/git_helper/gitlab_client_spec.rb
git_helper-2.0.2 spec/git_helper/gitlab_client_spec.rb
git_helper-2.0.1 spec/git_helper/gitlab_client_spec.rb