diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-08-04 00:04:01 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-08-04 00:04:01 +0800 |
commit | 3f7680a61933cd2f710236474b01e9cd9b849beb (patch) | |
tree | a878df6772c95ebe2095a5dae807562eba5096e4 | |
parent | 77540619d5ce0e63edec89ea3d406fa457696a0e (diff) | |
download | gitlab-ce-3f7680a61933cd2f710236474b01e9cd9b849beb.tar.gz |
I was too used to this style...
-rw-r--r-- | spec/models/ci/pipeline_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/ci/pipeline_spec.rb b/spec/models/ci/pipeline_spec.rb index b0496a017f4..b20c617f089 100644 --- a/spec/models/ci/pipeline_spec.rb +++ b/spec/models/ci/pipeline_spec.rb @@ -567,7 +567,7 @@ describe Ci::Pipeline, models: true do create(:ci_build, :pending, pipeline: pipeline, name: name) end - def requested status + def requested(status) have_requested(:post, hook.url).with do |req| JSON.parse(req.body)['object_attributes']['status'] == status end.once |