summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab_spec.rb
blob: c59dfea5c55f1dce507915547fcff4ee8f2541a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'rails_helper'

describe Gitlab, lib: true do
  describe '.com?' do
    it 'is true when on GitLab.com' do
      stub_config_setting(url: 'https://gitlab.com')

      expect(described_class.com?).to eq true
    end

    it 'is false when not on GitLab.com' do
      stub_config_setting(url: 'http://example.com')

      expect(described_class.com?).to eq false
    end
  end
end