Commit 4b2a3138 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

init rspec

parent d27a22a2
GEM
remote: http://rubygems.org/
specs:
diff-lcs (1.1.3)
rspec (2.12.0)
rspec-core (~> 2.12.0)
rspec-expectations (~> 2.12.0)
rspec-mocks (~> 2.12.0)
rspec-core (2.12.2)
rspec-expectations (2.12.1)
diff-lcs (~> 1.1.3)
rspec-mocks (2.12.2)
PLATFORMS
ruby
DEPENDENCIES
rspec
require_relative '../lib/gitlab_shell'
describe GitlabShell do
describe :initialize do
before do
ROOT_PATH = File.join(File.expand_path(File.dirname(__FILE__)), "..")
ENV['SSH_ORIGINAL_COMMAND'] = 'git-receive-pack'
ARGV = ['dzaporozhets']
@shell = GitlabShell.new
end
it { @shell.username.should == 'dzaporozhets' }
it { @shell.repos_path.should == "/home/git/repositories" }
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment