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
path: root/spec
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-04-11 22:04:10 +0300
committerNick Thomas <nick@gitlab.com>2018-04-11 22:04:10 +0300
commit84c70f4335e1b4f496f29cb99cc7fdaf926a5571 (patch)
tree7d6e86b43644076bfb007d07e0cab491f843a984 /spec
parent9f8d91c94e6ad41c970931d5eab6948fad31187b (diff)
parent1ce0595b18e3cb4caa551f9f0f03b264adb1e70e (diff)
Merge branch 'mk/geo/backport-broadcast-message-cache-expiration-hook' into 'master'
[CE Backport] Propagate broadcast messages to secondaries See merge request gitlab-org/gitlab-ce!18324
Diffstat (limited to 'spec')
-rw-r--r--spec/models/broadcast_message_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/models/broadcast_message_spec.rb b/spec/models/broadcast_message_spec.rb
index 461e754dc1f..5326f9cb8c0 100644
--- a/spec/models/broadcast_message_spec.rb
+++ b/spec/models/broadcast_message_spec.rb
@@ -51,7 +51,11 @@ describe BroadcastMessage do
expect(described_class).to receive(:where).and_call_original.once
- 2.times { described_class.current }
+ described_class.current
+
+ Timecop.travel(1.year) do
+ described_class.current
+ end
end
it 'includes messages that need to be displayed in the future' do