diff options
Diffstat (limited to 'spec/gitlab_config_spec.rb')
-rw-r--r-- | spec/gitlab_config_spec.rb | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/spec/gitlab_config_spec.rb b/spec/gitlab_config_spec.rb deleted file mode 100644 index d12b657..0000000 --- a/spec/gitlab_config_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -require_relative 'spec_helper' -require_relative '../lib/gitlab_config' - -describe GitlabConfig do - let(:config) { GitlabConfig.new } - let(:config_data) { {} } - - before { expect(YAML).to receive(:load_file).and_return(config_data) } - - describe '#gitlab_url' do - let(:url) { 'http://test.com' } - - subject { config.gitlab_url } - - before { config_data['gitlab_url'] = url } - - it { is_expected.not_to be_empty } - it { is_expected.to eq(url) } - - context 'remove trailing slashes' do - before { config_data['gitlab_url'] = url + '//' } - - it { is_expected.to eq(url) } - end - end - - describe '#audit_usernames' do - subject { config.audit_usernames } - - it("returns false by default") { is_expected.to eq(false) } - end - - describe '#log_format' do - subject { config.log_format } - - it 'returns "text" by default' do - is_expected.to eq('text') - end - end -end |