diff options
author | Marco Wessel <marco@poop.nl> | 2015-01-25 16:33:54 +0100 |
---|---|---|
committer | Marco Wessel <marco@poop.nl> | 2015-01-25 17:09:10 +0100 |
commit | aad6ceaef9ccfba8e058012a0877b80c103a3838 (patch) | |
tree | 33042a755f2c35024c140f20e9d63aba7e450ff4 /spec/services | |
parent | 254d1d7aa07fd1b45dd4090e98bcba86f5d3c699 (diff) | |
download | gitlab-ce-aad6ceaef9ccfba8e058012a0877b80c103a3838.tar.gz |
Allow configuring protection of the default branch upon first push
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/git_push_service_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/git_push_service_spec.rb b/spec/services/git_push_service_spec.rb index 19b442573f4..02c8133d2c6 100644 --- a/spec/services/git_push_service_spec.rb +++ b/spec/services/git_push_service_spec.rb @@ -106,7 +106,7 @@ describe GitPushService 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" }) + project.protected_branches.should_receive(:create).with({ name: "master", developers_can_push: false }) service.execute(project, user, @blankrev, 'newrev', 'refs/heads/master') end |