This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/spec/support
Sam Saffron 9ebabc1de8 FEATURE: unconditionally update Topic updated_at when posts change in topic
Previously we would bypass touching `Topic.updated_at` for whispers and post
recovery / deletions.

This meant that certain types of caching can not be done where we rely on
this information for cache accuracy.

For example if we know we have zero unread topics as of yesterday and whisper
is made I need to bump this date so the cache remains accurate

This is only half of a larger change but provides the groundwork.

Confirmed none of our serializers leak out Topic.updated_at so this is safe
spot for this info

At the moment edits still do not change this but it is not relevant for the
unread cache.

This commit also cleans up some specs to use the new `eq_time` matcher for
millisecond fidelity comparison of times

Previously `freeze_time` would fudge this which is not that clean.
2019-03-28 17:28:01 +11:00
..
versioning Convert specs to RSpec 2.99.2 syntax with Transpec 2015-04-25 11:18:35 -04:00
diagnostics_helper.rb Improve MessageBus.track_publish to allow filter by channel. 2017-10-02 11:34:57 +08:00
discourse_event_helper.rb Remove stubs on DiscourseEvent in tests. 2017-06-01 16:21:00 +09:00
fake_logger.rb FIX: logspam due to 404s on CSS files 2019-02-14 17:58:16 +11:00
helpers.rb FIX: don't redirect incorrectly after full screen login (#7170) 2019-03-19 12:39:13 +00:00
integration_helpers.rb DEV: Assert for 200 response code to avoid changing magic helper in the future. 2018-06-07 16:11:09 +08:00
match_html_matcher.rb Fix warnings for rspec 3 2015-04-25 21:02:06 -04:00
rate_limit_matcher.rb Initial release of Discourse 2013-02-05 14:16:51 -05:00
shared_examples_for_stats_cacheable.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
site_settings_helpers.rb DEV: Stablize the multisite tests. 2019-01-16 10:29:36 +08:00
time_matcher.rb FEATURE: unconditionally update Topic updated_at when posts change in topic 2019-03-28 17:28:01 +11:00