diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-05 09:35:41 +0200 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-05 09:35:41 +0200 |
| commit | 8d37428444f255a79ed99cb7726977b7195c6ebb (patch) | |
| tree | fd8a8b97024a1a18a39404bb278dfeb956573863 | |
| parent | 4b2a31389f1e19d0cb0f442871793eec6869432e (diff) | |
| download | gitlab-shell-8d37428444f255a79ed99cb7726977b7195c6ebb.tar.gz | |
rspec helper
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | .rspec | 1 | ||||
| -rw-r--r-- | spec/gitlab_shell_spec.rb | 4 | ||||
| -rw-r--r-- | spec/spec_helper.rb | 1 |
4 files changed, 5 insertions, 2 deletions
@@ -1 +1,2 @@ config.yml +tmp/* @@ -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__)), "..") |
