Sha256: b401aa344d7d21103eb7d96666fead75fca048c98115489a97a5b89d6bff50db
Contents?: true
Size: 785 Bytes
Versions: 7
Compression:
Stored size: 785 Bytes
Contents
# -*- coding: UTF-8 -*- require 'spec_helper' describe LitaGithub::Org do include LitaGithub::Org describe '.organization' do before do @cfg = double('Lita::Config', default_org: 'GrapeDuty') allow(self).to receive(:config).and_return(@cfg) end context 'when name provided is nil' do it 'should use the default' do expect(organization(nil)).to eql 'GrapeDuty' end end context 'when name provided is empty string ("")' do it 'should use the default' do expect(organization('')).to eql 'GrapeDuty' end end context 'when name provided is not nil or not empty string' do it 'should use the name provided' do expect(organization('testing')).to eql 'testing' end end end end
Version data entries
7 entries across 7 versions & 1 rubygems