diff options
author | Rémy Coutable <remy@rymai.me> | 2018-04-10 16:07:47 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-04-23 12:20:30 +0200 |
commit | c286c66f57e4fd716fe1746363f8c7cf4205cee3 (patch) | |
tree | fb2b9bc7c1c157bd1ca76051ce4c3c831e8d4b33 /spec/lib/gitlab_spec.rb | |
parent | fe919f95b140f95ffcefc6f7fbfd0e7b1da43016 (diff) | |
download | gitlab-ce-c286c66f57e4fd716fe1746363f8c7cf4205cee3.tar.gz |
Move Settings to its own file, isolate it from Rails and introduce Gitlab.root
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/lib/gitlab_spec.rb')
-rw-r--r-- | spec/lib/gitlab_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/gitlab_spec.rb b/spec/lib/gitlab_spec.rb index e734c12f6dd..da146e24893 100644 --- a/spec/lib/gitlab_spec.rb +++ b/spec/lib/gitlab_spec.rb @@ -3,6 +3,12 @@ require 'fast_spec_helper' require_dependency 'gitlab' describe Gitlab do + describe '.root' do + it 'returns the root path of the app' do + expect(described_class.root).to eq(Pathname.new(File.expand_path('../..', __dir__))) + end + end + describe '.com?' do it 'is true when on GitLab.com' do stub_config_setting(url: 'https://gitlab.com') |