diff options
author | Michael Kozono <mkozono@gmail.com> | 2018-04-11 20:49:56 +0300 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2018-04-11 21:28:44 +0300 |
commit | 1ce0595b18e3cb4caa551f9f0f03b264adb1e70e (patch) | |
tree | 7ba1688a232780ae8f51f398c8b82878256921e7 /spec | |
parent | 37a5632483b67ddcfa4c535cc911319b25f01fb5 (diff) |
Backport: Propagate broadcast messages to secondaries
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/broadcast_message_spec.rb | 6 |
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 |