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