Commit Graph

4 Commits

Author SHA1 Message Date
David Rodríguez
97331cb1c9 Fix direct_messages_max_per_day set to nil
When set to nil, it should mean not zero, but "infinite".
2017-10-23 12:15:31 +02:00
Bertocq
cc0146e372 Use Time in utc on direct message specs when changing created_at directly 2017-06-14 01:17:32 +02:00
Bertocq
9e74249b02 Always use Time.current (aliases internally to Time.zone.now)
Some specs where breaking close to midnight because 30.years.ago uses zone.now and Time.now.utc.to_date doesn't.
Also this will make all codebase consistent in the way time is deal with
2017-05-24 07:54:57 +02:00
rgarcia
25ebb325d1 limits maximum number of messages able to send per day 2016-06-16 11:10:26 +02:00