Skip to content

Commit

Permalink
Merge pull request #131 from 3nids/patch-1
Browse files Browse the repository at this point in the history
add pull request title to worker
  • Loading branch information
BanzaiMan committed Nov 15, 2018
2 parents 332a32b + 3618578 commit 32a7609
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/travis/scheduler/serialize/worker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def encrypted(value)
let(:ref) { 'refs/pull/180/merge' }
let(:pr_number) { 180 }
let(:payload) { { 'pull_request' => { 'head' => { 'ref' => 'head_branch', 'sha' => '62aaef', 'repo' => {'full_name' => 'travis-ci/gem-release'} } } } }
let(:pull_request) { PullRequest.create(head_ref: 'head_branch', head_repo_slug: 'travis-ci/gem-release') }
let(:pull_request) { PullRequest.create(head_ref: 'head_branch', head_repo_slug: 'travis-ci/gem-release', title: 'Awesome pull request') }

before { request.update_attributes(pull_request: pull_request, base_commit: '0cd9ff', head_commit: '62aaef') }

Expand Down Expand Up @@ -235,6 +235,7 @@ def encrypted(value)
pull_request_head_branch: 'head_branch',
pull_request_head_sha: '62aaef',
pull_request_head_slug: 'travis-ci/gem-release',
pull_request_title: 'Awesome pull request',
allow_failure: allow_failure,
stage_name: nil,
name: 'jobname',
Expand Down

0 comments on commit 32a7609

Please sign in to comment.