diff options
author | Douwe Maan <douwe@gitlab.com> | 2018-04-23 15:21:46 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-04-23 15:21:46 +0000 |
commit | 1f062ee0d04175bbed3ea1d23a3e090230d4b9bd (patch) | |
tree | 165998a59d8eadb0ced83e3a7bba3f0a039f4a2e /spec/lib | |
parent | 38b35076575e440860d45625747da882dfc97af7 (diff) | |
parent | 2afe3a1210e6c444f9b92d59a02fcb3f474ae614 (diff) | |
download | gitlab-ce-1f062ee0d04175bbed3ea1d23a3e090230d4b9bd.tar.gz |
Merge branch '44713-fast-spec-helper' into 'master'
Resolve "Skip setup of gitlab-shell, gitaly, ... for specs that don't need it."
Closes #44713
See merge request gitlab-org/gitlab-ce!18074
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab_spec.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/lib/gitlab_spec.rb b/spec/lib/gitlab_spec.rb index bd443a5d9e7..da146e24893 100644 --- a/spec/lib/gitlab_spec.rb +++ b/spec/lib/gitlab_spec.rb @@ -1,6 +1,14 @@ -require 'rails_helper' +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') |