spec/lib/release_tools/passing_build_spec.rb [174:191]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        commit = build(:commit, status: status_name)

        expect(client).to receive(:commit).with(project.auto_deploy_path, ref: commit.id).and_return(commit)
        expect(commits).to receive(:latest_successful_on_build)
          .with({ since_last_auto_deploy: true })
          .and_yield(commit.id)

        pipelines = build_list(:pipeline, 2, :success)
        expect(client).to receive(:pipelines)
          .with(
            project.auto_deploy_path,
            {
              sha: commit.id,
              ref: project.default_branch,
              status: 'success'
            }
          )
          .and_return(Gitlab::PaginatedResponse.new(pipelines))
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



spec/lib/release_tools/passing_build_spec.rb [218:235]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        commit = build(:commit, status: status_name)

        expect(client).to receive(:commit).with(project.auto_deploy_path, ref: commit.id).and_return(commit)
        expect(commits).to receive(:latest_successful_on_build)
          .with({ since_last_auto_deploy: true })
          .and_yield(commit.id)

        pipelines = build_list(:pipeline, 2, :success)
        expect(client).to receive(:pipelines)
          .with(
            project.auto_deploy_path,
            {
              sha: commit.id,
              ref: project.default_branch,
              status: 'success'
            }
          )
          .and_return(Gitlab::PaginatedResponse.new(pipelines))
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



