diff options
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 |
