Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-09-29 18:07:53 +0400
committerMarin Jankovski <marin@gitlab.com>2014-09-29 18:07:53 +0400
commitab6459ad488e51a1477d48535c2cae6ce2d14a23 (patch)
treed194646a925123706d99170db1d3cd30ca402886 /spec/services/git_push_service_spec.rb
parentfbc6f95a02913a76cafc43a1886ef339f3b7ebde (diff)
Add a simple spec test.
Diffstat (limited to 'spec/services/git_push_service_spec.rb')
-rw-r--r--spec/services/git_push_service_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/services/git_push_service_spec.rb b/spec/services/git_push_service_spec.rb
index 9afa4953d61..4ef053a767f 100644
--- a/spec/services/git_push_service_spec.rb
+++ b/spec/services/git_push_service_spec.rb
@@ -105,6 +105,8 @@ describe GitPushService do
context "execute web hooks" do
it "when pushing a branch for the first time" do
project.should_receive(:execute_hooks)
+ project.default_branch.should == "master"
+ project.protected_branches.should_receive(:create).with({ name: "master" })
service.execute(project, user, @blankrev, 'newrev', 'refs/heads/master')
end