summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2018-03-13 14:33:48 +0100
committerJacob Vosmaer <jacob@gitlab.com>2018-03-13 14:33:48 +0100
commitadfcf0055f7c497619539ec9769f33aa2659766b (patch)
tree22a99f58d7373ea2eb9fc604d91fcba4a32dec32
parent645cafe47af3055e27bf16103bbdb9684716fd4e (diff)
downloadgitlab-shell-adfcf0055f7c497619539ec9769f33aa2659766b.tar.gz
Convert let to def
-rw-r--r--spec/gitlab_shell_authorized_keys_check_spec.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/gitlab_shell_authorized_keys_check_spec.rb b/spec/gitlab_shell_authorized_keys_check_spec.rb
index 17e6e37..4947ce3 100644
--- a/spec/gitlab_shell_authorized_keys_check_spec.rb
+++ b/spec/gitlab_shell_authorized_keys_check_spec.rb
@@ -1,8 +1,13 @@
require_relative 'spec_helper'
describe 'bin/gitlab-shell-authorized-keys-check' do
- let(:original_root_path) { ROOT_PATH }
- let(:tmp_root_path) { File.join(original_root_path, 'tmp') }
+ def original_root_path
+ ROOT_PATH
+ end
+
+ def tmp_root_path
+ File.join(original_root_path, 'tmp')
+ end
def config_path
File.join(tmp_root_path, 'config.yml')