Skip to content

Commit 8d37428

Browse files
committed
rspec helper
1 parent 4b2a313 commit 8d37428

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
config.yml
2+
tmp/*

.rspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--color

spec/gitlab_shell_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
require_relative 'spec_helper'
12
require_relative '../lib/gitlab_shell'
23

34
describe GitlabShell do
45

56
describe :initialize do
67
before do
7-
ROOT_PATH = File.join(File.expand_path(File.dirname(__FILE__)), "..")
88
ENV['SSH_ORIGINAL_COMMAND'] = 'git-receive-pack'
9-
ARGV = ['dzaporozhets']
9+
ARGV[0] = 'dzaporozhets'
1010
@shell = GitlabShell.new
1111
end
1212

spec/spec_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ROOT_PATH = File.join(File.expand_path(File.dirname(__FILE__)), "..")

0 commit comments

Comments
 (0)