mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 04:01:29 -05:00
Fix report_spec so it's not so fussy and breaks sometimes
This commit is contained in:
parent
b554bf4520
commit
f1908fd8e8
1 changed files with 1 additions and 4 deletions
|
@ -102,10 +102,7 @@ describe Report do
|
|||
|
||||
it 'should cache the data set' do
|
||||
$redis.expects(:setex).with do |key, expiry, string|
|
||||
key == 'signups:data' and
|
||||
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"
|
||||
string =~ /(\d)+-(\d)+-(\d)+,1/ and string =~ /(\d)+-(\d)+-(\d)+,2/
|
||||
end
|
||||
report()
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue