Sha256: 88b1001a74e53559549b57e3150fb535e38a387f97b5dd77f1f091eb24646d14

Contents?: true

Size: 677 Bytes

Versions: 12

Compression:

Stored size: 677 Bytes

Contents

require 'spec_helper'
require 'git_helper'

describe GitHelper::OctokitClient do
  let(:git_config_reader) { double(:git_config_reader, github_token: :token) }

  subject { GitHelper::OctokitClient.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(Octokit::Client).to receive(:new)
      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/octokit_client_spec.rb
git_helper-3.3.0 spec/git_helper/octokit_client_spec.rb
git_helper-3.2.2 spec/git_helper/octokit_client_spec.rb
git_helper-3.2.1 spec/git_helper/octokit_client_spec.rb
git_helper-3.2.0 spec/git_helper/octokit_client_spec.rb
git_helper-3.1.3 spec/git_helper/octokit_client_spec.rb
git_helper-3.1.2 spec/git_helper/octokit_client_spec.rb
git_helper-3.1.0 spec/git_helper/octokit_client_spec.rb
git_helper-3.0.1 spec/git_helper/octokit_client_spec.rb
git_helper-3.0.0 spec/git_helper/octokit_client_spec.rb
git_helper-2.0.2 spec/git_helper/octokit_client_spec.rb
git_helper-2.0.1 spec/git_helper/octokit_client_spec.rb