Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Niedzielski <adamsunday@gmail.com>2017-04-05 16:35:05 +0300
committerAdam Niedzielski <adamsunday@gmail.com>2017-04-05 16:35:05 +0300
commit35bafb3797505f576934203fa29340239f26a80c (patch)
tree43d822e5456a5de9b9c22c975fc4e30800722246 /spec/lib/gitlab/polling_interval_spec.rb
parentd4349ba6c4960f50dce7b0beec5f309894dbada9 (diff)
Convert value to string before setting Poll-Interval header
Diffstat (limited to 'spec/lib/gitlab/polling_interval_spec.rb')
-rw-r--r--spec/lib/gitlab/polling_interval_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/polling_interval_spec.rb b/spec/lib/gitlab/polling_interval_spec.rb
index 56c2847e26a..5ea8ecb1c30 100644
--- a/spec/lib/gitlab/polling_interval_spec.rb
+++ b/spec/lib/gitlab/polling_interval_spec.rb
@@ -15,7 +15,7 @@ describe Gitlab::PollingInterval, lib: true do
it 'sets value to -1' do
polling_interval.set_header(response, interval: 10_000)
- expect(headers['Poll-Interval']).to eq(-1)
+ expect(headers['Poll-Interval']).to eq('-1')
end
end
@@ -27,7 +27,7 @@ describe Gitlab::PollingInterval, lib: true do
it 'applies modifier to base interval' do
polling_interval.set_header(response, interval: 10_000)
- expect(headers['Poll-Interval']).to eq(3333)
+ expect(headers['Poll-Interval']).to eq('3333')
end
end
end