Skip to content

Commit 4b2a313

Browse files
committed
init rspec
1 parent d27a22a commit 4b2a313

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "http://rubygems.org"
2+
3+
gem 'rspec'

Gemfile.lock

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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

spec/gitlab_shell_spec.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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

0 commit comments

Comments
 (0)