diff options
author | Jonathon Reinhart <Jonathon.Reinhart@gmail.com> | 2018-12-13 00:01:02 -0500 |
---|---|---|
committer | Jonathon Reinhart <Jonathon.Reinhart@gmail.com> | 2018-12-13 22:34:15 -0500 |
commit | af705c3f8c21ab34ba7cde8777b1e29e35b26a4c (patch) | |
tree | c2543b8e11a481ab2d64fda3e9e098db21de222d /spec/gitlab_net_spec.rb | |
parent | 30a06eca35d38ac91c1f2beadb2443f37d28476b (diff) | |
download | gitlab-shell-af705c3f8c21ab34ba7cde8777b1e29e35b26a4c.tar.gz |
Use 'push_options' everywhere instead of 'push_opts'
Diffstat (limited to 'spec/gitlab_net_spec.rb')
-rw-r--r-- | spec/gitlab_net_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/gitlab_net_spec.rb b/spec/gitlab_net_spec.rb index 8409b14..1ca4096 100644 --- a/spec/gitlab_net_spec.rb +++ b/spec/gitlab_net_spec.rb @@ -174,9 +174,9 @@ describe GitlabNet, vcr: true do describe '#post_receive' do let(:gl_repository) { "project-1" } let(:changes) { "123456 789012 refs/heads/test\n654321 210987 refs/tags/tag" } - let(:push_opts) { ["ci-skip", "something unexpected"] } + let(:push_options) { ["ci-skip", "something unexpected"] } let(:params) do - { gl_repository: gl_repository, identifier: key, changes: changes, :"push_opts[]" => push_opts } + { gl_repository: gl_repository, identifier: key, changes: changes, :"push_options[]" => push_options } end let(:merge_request_urls) do [{ @@ -186,7 +186,7 @@ describe GitlabNet, vcr: true do }] end - subject { gitlab_net.post_receive(gl_repository, key, changes, push_opts) } + subject { gitlab_net.post_receive(gl_repository, key, changes, push_options) } it 'sends the correct parameters' do expect_any_instance_of(Net::HTTP::Post).to receive(:set_form_data).with(hash_including(params)) |