summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-02-06 15:31:39 +0100
committerKamil Trzciński <ayufan@ayufan.eu>2018-02-06 15:34:44 +0100
commit11f882ca437337ebd04331b9e96217f1d48be93e (patch)
treed3cd12ddc7c0fc56b046854c6315f191477a7c27 /spec/lib
parent9483cbab26ad239c7a102f887177aaf354c9d13c (diff)
downloadgitlab-ce-11f882ca437337ebd04331b9e96217f1d48be93e.tar.gz
Upgrade GitLab Workhorse to v3.6.0
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/workhorse_spec.rb17
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