diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-02-06 17:31:39 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-02-06 17:34:44 +0300 |
commit | 11f882ca437337ebd04331b9e96217f1d48be93e (patch) | |
tree | d3cd12ddc7c0fc56b046854c6315f191477a7c27 /spec/lib/gitlab/workhorse_spec.rb | |
parent | 9483cbab26ad239c7a102f887177aaf354c9d13c (diff) |
Upgrade GitLab Workhorse to v3.6.0
Diffstat (limited to 'spec/lib/gitlab/workhorse_spec.rb')
-rw-r--r-- | spec/lib/gitlab/workhorse_spec.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/lib/gitlab/workhorse_spec.rb b/spec/lib/gitlab/workhorse_spec.rb index 2e7a0265a0b..dc2bb5b9747 100644 --- a/spec/lib/gitlab/workhorse_spec.rb +++ b/spec/lib/gitlab/workhorse_spec.rb @@ -465,4 +465,21 @@ describe Gitlab::Workhorse do end end end + + describe '.send_url' do + let(:url) { 'http://example.com' } + + subject { described_class.send_url(url) } + + it 'sets the header correctly' do + key, command, params = decode_workhorse_header(subject) + + expect(key).to eq("Gitlab-Workhorse-Send-Data") + expect(command).to eq("send-url") + expect(params).to eq({ + 'URL' => url, + 'AllowRedirects' => false + }.deep_stringify_keys) + end + end end |