diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-10-26 12:34:40 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-10-26 12:37:23 +0300 |
commit | d8aed6a27bc6e5e5cd14a10219473c34ba424949 (patch) | |
tree | 5ab4ed9eb1bd19ca2186105148708bf727259fae /spec/requests/api/builds_spec.rb | |
parent | 47b2add4f62d64d1a46109910c86805728e548c4 (diff) |
Fix optimistic locking
Diffstat (limited to 'spec/requests/api/builds_spec.rb')
-rw-r--r-- | spec/requests/api/builds_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/requests/api/builds_spec.rb b/spec/requests/api/builds_spec.rb index 95c7bbf99c9..fc72a44d663 100644 --- a/spec/requests/api/builds_spec.rb +++ b/spec/requests/api/builds_spec.rb @@ -277,6 +277,7 @@ describe API::API, api: true do context 'with regular branch' do before do + pipeline.reload pipeline.update(ref: 'master', sha: project.commit('master').sha) @@ -288,6 +289,7 @@ describe API::API, api: true do context 'with branch name containing slash' do before do + pipeline.reload pipeline.update(ref: 'improve/awesome', sha: project.commit('improve/awesome').sha) end |