Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAnatoli Babenia <anatoli@rainforce.org>2022-10-06 15:15:16 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2022-10-06 15:15:16 +0300
commitf63b991fec9df32e0e165d4460eaa615e3665241 (patch)
tree1806a2fa2761c30fab5bf3c9041bc2c7b3f7fea9 /spec
parentc4a9771acd9d332cbd6ae6749e8b10e9b1cc6e32 (diff)
Add `project_root` helper for Rake tasks
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/task_helpers_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/lib/task_helpers_spec.rb b/spec/lib/task_helpers_spec.rb
index bdbd3064..194e1ac8 100644
--- a/spec/lib/task_helpers_spec.rb
+++ b/spec/lib/task_helpers_spec.rb
@@ -3,6 +3,16 @@
require './lib/tasks/task_helpers'
describe TaskHelpers do
+ describe '#project_root' do
+ it 'returns project checkout root' do
+ expect(
+ described_class.new.project_root
+ ).to eq(
+ File.expand_path(__dir__+'/../..')
+ )
+ end
+ end
+
describe '#chart_version' do
let(:gitlab_version) { nil }