Sha256: d55ec823ffb3128b16f9b204223e82cb3abde2b0413738c01e13620f74a5ac17
Contents?: true
Size: 875 Bytes
Versions: 4
Compression:
Stored size: 875 Bytes
Contents
# -*- coding: UTF-8 -*- require 'spec_helper' describe LitaGithub::Repo do include LitaGithub::Repo describe '.rpo' do it 'should return the provided arguments in a Repo-like string' do org = 'GrapeDuty' repo = 'lita-test' expect(rpo(org, repo)).to eql "#{org}/#{repo}" end end describe '.repo?' do before do @octo = double('Octokit::Client', repository?: true) allow(self).to receive(:octo).and_return(@octo) end context 'when repo exists' do subject { repo?('GrapeDuty/lita-test') } it { should be_truthy } end context 'when repo does not exist' do before do @octo = double('Octokit::Client', repository?: false) allow(self).to receive(:octo).and_return(@octo) end subject { repo?('GrapeDuty/lita-test') } it { should be_falsey } end end end
Version data entries
4 entries across 4 versions & 1 rubygems