summaryrefslogtreecommitdiff
path: root/spec/gitlab_shell_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/gitlab_shell_spec.rb')
-rw-r--r--spec/gitlab_shell_spec.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/gitlab_shell_spec.rb b/spec/gitlab_shell_spec.rb
new file mode 100644
index 0000000..9a7e515
--- /dev/null
+++ b/spec/gitlab_shell_spec.rb
@@ -0,0 +1,16 @@
+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