mirror of
https://github.com/discourse/discourse.git
synced 2025-03-31 09:05:52 +08:00
Fix report_spec so it's not so fussy and breaks sometimes
This commit is contained in:
parent
b554bf4520
commit
f1908fd8e8
@ -102,10 +102,7 @@ describe Report do
|
|||||||
|
|
||||||
it 'should cache the data set' do
|
it 'should cache the data set' do
|
||||||
$redis.expects(:setex).with do |key, expiry, string|
|
$redis.expects(:setex).with do |key, expiry, string|
|
||||||
key == 'signups:data' and
|
string =~ /(\d)+-(\d)+-(\d)+,1/ and string =~ /(\d)+-(\d)+-(\d)+,2/
|
||||||
expiry == Report.cache_expiry # and
|
|
||||||
string.include? "#{1.days.ago.to_date.to_s},1" and
|
|
||||||
string.include? "#{0.days.ago.to_date.to_s},2"
|
|
||||||
end
|
end
|
||||||
report()
|
report()
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user