diff options
author | Marin Jankovski <marin@gitlab.com> | 2014-09-29 16:07:53 +0200 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2014-09-29 16:07:53 +0200 |
commit | ab6459ad488e51a1477d48535c2cae6ce2d14a23 (patch) | |
tree | d194646a925123706d99170db1d3cd30ca402886 /spec/services | |
parent | fbc6f95a02913a76cafc43a1886ef339f3b7ebde (diff) | |
download | gitlab-ce-ab6459ad488e51a1477d48535c2cae6ce2d14a23.tar.gz |
Add a simple spec test.
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/git_push_service_spec.rb | 2 |
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 |