diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2017-05-15 11:56:59 +0000 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2017-05-15 11:56:59 +0000 |
commit | d6ba5530b55a32137f14760e59b991ae900d2f53 (patch) | |
tree | 20487fcc095a75f306ab4bc06b7a3446a78b6954 /spec | |
parent | 743cde02c37490396f9c5d2822406ce66190c751 (diff) | |
parent | 20ece0aac37ab38c6207bd3d0a4c6276275fb049 (diff) | |
download | gitlab-ce-d6ba5530b55a32137f14760e59b991ae900d2f53.tar.gz |
Merge branch 'enable-auto-cancelling-by-default' into 'master'
Make auto-cancelling pending pipelines on by default
Closes #30656
See merge request !11023
Diffstat (limited to 'spec')
-rw-r--r-- | spec/workers/post_receive_spec.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/workers/post_receive_spec.rb b/spec/workers/post_receive_spec.rb index 3289c2df1fb..f4bc63bcc6a 100644 --- a/spec/workers/post_receive_spec.rb +++ b/spec/workers/post_receive_spec.rb @@ -4,13 +4,16 @@ describe PostReceive do let(:changes) { "123456 789012 refs/heads/tést\n654321 210987 refs/tags/tag" } let(:wrongly_encoded_changes) { changes.encode("ISO-8859-1").force_encoding("UTF-8") } let(:base64_changes) { Base64.encode64(wrongly_encoded_changes) } - let(:project) { create(:project, :repository) } let(:project_identifier) { "project-#{project.id}" } let(:key) { create(:key, user: project.owner) } let(:key_id) { key.shell_id } + let(:project) do + create(:project, :repository, auto_cancel_pending_pipelines: 'disabled') + end + context "as a sidekiq worker" do - it "reponds to #perform" do + it "responds to #perform" do expect(described_class.new).to respond_to(:perform) end end |