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 | |
parent | 30a06eca35d38ac91c1f2beadb2443f37d28476b (diff) | |
download | gitlab-shell-af705c3f8c21ab34ba7cde8777b1e29e35b26a4c.tar.gz |
Use 'push_options' everywhere instead of 'push_opts'
Diffstat (limited to 'spec')
-rw-r--r-- | spec/gitlab_net_spec.rb | 6 | ||||
-rw-r--r-- | spec/gitlab_post_receive_spec.rb | 4 |
2 files changed, 5 insertions, 5 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)) diff --git a/spec/gitlab_post_receive_spec.rb b/spec/gitlab_post_receive_spec.rb index ac1cea2..3cae631 100644 --- a/spec/gitlab_post_receive_spec.rb +++ b/spec/gitlab_post_receive_spec.rb @@ -11,8 +11,8 @@ describe GitlabPostReceive do let(:base64_changes) { Base64.encode64(wrongly_encoded_changes) } let(:repo_path) { File.join(repository_path, repo_name) + ".git" } let(:gl_repository) { "project-1" } - let(:push_opts) { [] } - let(:gitlab_post_receive) { GitlabPostReceive.new(gl_repository, repo_path, actor, wrongly_encoded_changes, push_opts) } + let(:push_options) { [] } + let(:gitlab_post_receive) { GitlabPostReceive.new(gl_repository, repo_path, actor, wrongly_encoded_changes, push_options) } let(:broadcast_message) { "test " * 10 + "message " * 10 } let(:enqueued_at) { Time.new(2016, 6, 23, 6, 59) } let(:new_merge_request_urls) do |