summaryrefslogtreecommitdiff
path: root/spec/models/project_services
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-04-29 14:43:56 +0000
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-04-29 14:43:56 +0000
commitf832b96ad7f36d3f8b0ed7cb8776ff301410af8e (patch)
tree417a6ff88c81c0c6e4f6898a2ed98249c3e09a85 /spec/models/project_services
parent17e8e8d3f43dda6114523a1fd15096cae3bd71d4 (diff)
parentf48605c796bf9098370a258e00fce41f1770ff74 (diff)
downloadgitlab-ce-f832b96ad7f36d3f8b0ed7cb8776ff301410af8e.tar.gz
Merge branch 'use-keyword-args-for-databuilder-push' into 'master'
Use keyword args for databuilder push See merge request gitlab-org/gitlab-ce!24088
Diffstat (limited to 'spec/models/project_services')
-rw-r--r--spec/models/project_services/hipchat_service_spec.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/spec/models/project_services/hipchat_service_spec.rb b/spec/models/project_services/hipchat_service_spec.rb
index fd9e33c1781..a04b984c1f6 100644
--- a/spec/models/project_services/hipchat_service_spec.rb
+++ b/spec/models/project_services/hipchat_service_spec.rb
@@ -98,12 +98,11 @@ describe HipchatService do
context 'tag_push events' do
let(:push_sample_data) do
Gitlab::DataBuilder::Push.build(
- project,
- user,
- Gitlab::Git::BLANK_SHA,
- '1' * 40,
- 'refs/tags/test',
- [])
+ project: project,
+ user: user,
+ oldrev: Gitlab::Git::BLANK_SHA,
+ newrev: '1' * 40,
+ ref: 'refs/tags/test')
end
it "calls Hipchat API for tag push events" do