diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2019-04-29 17:43:56 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2019-04-29 17:43:56 +0300 |
commit | f832b96ad7f36d3f8b0ed7cb8776ff301410af8e (patch) | |
tree | 417a6ff88c81c0c6e4f6898a2ed98249c3e09a85 /spec/lib/gitlab/data_builder | |
parent | 17e8e8d3f43dda6114523a1fd15096cae3bd71d4 (diff) | |
parent | f48605c796bf9098370a258e00fce41f1770ff74 (diff) |
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/lib/gitlab/data_builder')
-rw-r--r-- | spec/lib/gitlab/data_builder/push_spec.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/spec/lib/gitlab/data_builder/push_spec.rb b/spec/lib/gitlab/data_builder/push_spec.rb index 0c4decc6518..46ad674a1eb 100644 --- a/spec/lib/gitlab/data_builder/push_spec.rb +++ b/spec/lib/gitlab/data_builder/push_spec.rb @@ -23,9 +23,12 @@ describe Gitlab::DataBuilder::Push do describe '.build' do let(:data) do - described_class.build(project, user, Gitlab::Git::BLANK_SHA, - '8a2a6eb295bb170b34c24c76c49ed0e9b2eaf34b', - 'refs/tags/v1.1.0') + described_class.build( + project: project, + user: user, + oldrev: Gitlab::Git::BLANK_SHA, + newrev: '8a2a6eb295bb170b34c24c76c49ed0e9b2eaf34b', + ref: 'refs/tags/v1.1.0') end it { expect(data).to be_a(Hash) } @@ -47,7 +50,7 @@ describe Gitlab::DataBuilder::Push do include_examples 'deprecated repository hook data' it 'does not raise an error when given nil commits' do - expect { described_class.build(spy, spy, spy, spy, 'refs/tags/v1.1.0', nil) } + expect { described_class.build(project: spy, user: spy, ref: 'refs/tags/v1.1.0', commits: nil) } .not_to raise_error end end |