summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab_spec.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-04-10 16:07:47 +0200
committerRémy Coutable <remy@rymai.me>2018-04-10 16:15:04 +0200
commit88887586e7205c13b3b883b1a674d0c03bca892a (patch)
tree7dcf661a9341837c1386820cebef2637a15175a7 /spec/lib/gitlab_spec.rb
parent6e7905cefef67577cebaf5a7940a9b23209805fd (diff)
downloadgitlab-ce-44713-fast-spec-helper.tar.gz
Move Settings to its own file, isolate it from Rails and introduce Gitlab.root44713-fast-spec-helper
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/lib/gitlab_spec.rb')
-rw-r--r--spec/lib/gitlab_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/gitlab_spec.rb b/spec/lib/gitlab_spec.rb
index b31e748b202..037df789e77 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')