diff options
author | Anatoli Babenia <anatoli@rainforce.org> | 2022-10-06 15:15:16 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2022-10-06 15:15:16 +0300 |
commit | f63b991fec9df32e0e165d4460eaa615e3665241 (patch) | |
tree | 1806a2fa2761c30fab5bf3c9041bc2c7b3f7fea9 /spec | |
parent | c4a9771acd9d332cbd6ae6749e8b10e9b1cc6e32 (diff) |
Add `project_root` helper for Rake tasks
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/task_helpers_spec.rb | 10 |
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 } |