diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-20 09:06:16 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-20 09:06:16 +0300 |
commit | 0282449e6ea95b54b32acfd2de24c8c5f64a8165 (patch) | |
tree | 017b43b103e45ff571d637a5efc77b5ed25c0686 /spec/models/deployment_spec.rb | |
parent | 0ecdcf59f4342de55a7d2c3ee4ac0d9c3b116aa5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/deployment_spec.rb')
-rw-r--r-- | spec/models/deployment_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/models/deployment_spec.rb b/spec/models/deployment_spec.rb index 52c19d4814c..268542c39c4 100644 --- a/spec/models/deployment_spec.rb +++ b/spec/models/deployment_spec.rb @@ -32,8 +32,9 @@ describe Deployment do let(:deployment) { create(:deployment, deployable: build) } it 'delegates to other_scheduled_actions' do - expect_any_instance_of(Ci::Build) - .to receive(:other_scheduled_actions) + expect_next_instance_of(Ci::Build) do |instance| + expect(instance).to receive(:other_scheduled_actions) + end subject end |