Commit 3f7680a6 authored by Lin Jen-Shin's avatar Lin Jen-Shin

I was too used to this style...

parent 77540619
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment