summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-05 09:35:41 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-05 09:35:41 +0200
commit8d37428444f255a79ed99cb7726977b7195c6ebb (patch)
treefd8a8b97024a1a18a39404bb278dfeb956573863
parent4b2a31389f1e19d0cb0f442871793eec6869432e (diff)
downloadgitlab-shell-8d37428444f255a79ed99cb7726977b7195c6ebb.tar.gz
rspec helper
-rw-r--r--.gitignore1
-rw-r--r--.rspec1
-rw-r--r--spec/gitlab_shell_spec.rb4
-rw-r--r--spec/spec_helper.rb1
4 files changed, 5 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 1d3ed4c..6f536e7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
config.yml
+tmp/*
diff --git a/.rspec b/.rspec
new file mode 100644
index 0000000..4e1e0d2
--- /dev/null
+++ b/.rspec
@@ -0,0 +1 @@
+--color
diff --git a/spec/gitlab_shell_spec.rb b/spec/gitlab_shell_spec.rb
index 9a7e515..1132e81 100644
--- a/spec/gitlab_shell_spec.rb
+++ b/spec/gitlab_shell_spec.rb
@@ -1,12 +1,12 @@
+require_relative 'spec_helper'
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']
+ ARGV[0] = 'dzaporozhets'
@shell = GitlabShell.new
end
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
new file mode 100644
index 0000000..23b518a
--- /dev/null
+++ b/spec/spec_helper.rb
@@ -0,0 +1 @@
+ROOT_PATH = File.join(File.expand_path(File.dirname(__FILE__)), "..")