File tree Expand file tree Collapse file tree 3 files changed +37
-0
lines changed Expand file tree Collapse file tree 3 files changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ source "http://rubygems.org"
2
+
3
+ gem 'rspec'
Original file line number Diff line number Diff line change
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ diff-lcs (1.1.3 )
5
+ rspec (2.12.0 )
6
+ rspec-core (~> 2.12.0 )
7
+ rspec-expectations (~> 2.12.0 )
8
+ rspec-mocks (~> 2.12.0 )
9
+ rspec-core (2.12.2 )
10
+ rspec-expectations (2.12.1 )
11
+ diff-lcs (~> 1.1.3 )
12
+ rspec-mocks (2.12.2 )
13
+
14
+ PLATFORMS
15
+ ruby
16
+
17
+ DEPENDENCIES
18
+ rspec
Original file line number Diff line number Diff line change
1
+ require_relative '../lib/gitlab_shell'
2
+
3
+ describe GitlabShell do
4
+
5
+ describe :initialize do
6
+ before do
7
+ ROOT_PATH = File . join ( File . expand_path ( File . dirname ( __FILE__ ) ) , ".." )
8
+ ENV [ 'SSH_ORIGINAL_COMMAND' ] = 'git-receive-pack'
9
+ ARGV = [ 'dzaporozhets' ]
10
+ @shell = GitlabShell . new
11
+ end
12
+
13
+ it { @shell . username . should == 'dzaporozhets' }
14
+ it { @shell . repos_path . should == "/home/git/repositories" }
15
+ end
16
+ end
You can’t perform that action at this time.
0 commit comments