diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-01-14 14:12:43 +0300 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-01-15 19:03:25 +0300 |
commit | f17735faa5d42fae2ad4b913711c58223c3eb33f (patch) | |
tree | 2950e8a09dff4a5e5ffad0c0bf34a19086969890 /spec/workers/repository_fork_worker_spec.rb | |
parent | 74f2f9b30fb1972a26481072486b358eb943309f (diff) |
Fork now protects default branch on completion
Diffstat (limited to 'spec/workers/repository_fork_worker_spec.rb')
-rw-r--r-- | spec/workers/repository_fork_worker_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/workers/repository_fork_worker_spec.rb b/spec/workers/repository_fork_worker_spec.rb index 31598586f59..4912baa348c 100644 --- a/spec/workers/repository_fork_worker_spec.rb +++ b/spec/workers/repository_fork_worker_spec.rb @@ -47,6 +47,14 @@ describe RepositoryForkWorker do perform! end + it 'protects the default branch' do + expect_fork_repository.and_return(true) + + perform! + + expect(fork_project.protected_branches.first.name).to eq(fork_project.default_branch) + end + it 'flushes various caches' do expect_fork_repository.and_return(true) |