summaryrefslogtreecommitdiff
path: root/spec/gitlab_update_spec.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-09-02 09:17:43 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-09-02 09:17:43 +0000
commit76f7f349669524809db2daa34d07d4af9b9e9544 (patch)
treee5e020d921f454b1f61b903e76e31d37a5ffaeb4 /spec/gitlab_update_spec.rb
parent99fa0c6e878ed7e5e6292a87524bd43edfafbc9f (diff)
parenta71c80721de28e59147dc6b8c8326c98570a1cb8 (diff)
downloadgitlab-shell-76f7f349669524809db2daa34d07d4af9b9e9544.tar.gz
Merge branch 'hooks-refactoring' into 'master'
Hooks refactoring * replace update hook with pre-receive & post-receive hooks * use pre-receive hook for authorisation * use post-receive hook to create background job for GitLab worker Related to https://dev.gitlab.org/gitlab/gitlabhq/issues/1516 See merge request !38
Diffstat (limited to 'spec/gitlab_update_spec.rb')
-rw-r--r--spec/gitlab_update_spec.rb25
1 files changed, 0 insertions, 25 deletions
diff --git a/spec/gitlab_update_spec.rb b/spec/gitlab_update_spec.rb
deleted file mode 100644
index 580d8c9..0000000
--- a/spec/gitlab_update_spec.rb
+++ /dev/null
@@ -1,25 +0,0 @@
-require 'spec_helper'
-require 'gitlab_update'
-
-describe GitlabUpdate do
- let(:repository_path) { "/home/git/repositories" }
- let(:repo_name) { 'dzaporozhets/gitlab-ci' }
- let(:repo_path) { File.join(repository_path, repo_name) + ".git" }
- let(:ref) { 'refs/heads/awesome-feature' }
- let(:gitlab_update) { GitlabUpdate.new(repo_path, 'key-123', ref) }
-
- before do
- ARGV[1] = 'd1e3ca3b25'
- ARGV[2] = 'c2b3653b25'
- GitlabConfig.any_instance.stub(repos_path: repository_path)
- end
-
- describe :initialize do
- it { gitlab_update.repo_name.should == repo_name }
- it { gitlab_update.repo_path.should == repo_path }
- it { gitlab_update.ref.should == ref }
- it { gitlab_update.ref_name.should == 'awesome-feature' }
- it { gitlab_update.oldrev.should == 'd1e3ca3b25' }
- it { gitlab_update.newrev.should == 'c2b3653b25' }
- end
-end