discourse/spec/models
Joffrey JAFFEUX f0ef307d2d
FIX: topic timer offset applied two times
timezone offset was calculated and sent from browser to server, it would be applied on utc time generated from '2013-11-22 5:00' format for example and then sent back to browser which would display it thinking it's UTC time using `moment(utc time)` when it's in fact an UTC time we have offseted with the initial user timezone.

This is impossible to automatically test in the current app state. Easiest reproduction is in live browser after setting your timezone to `America/New_York`, when setting a topic timer to later_today, after save, the time under the topic should be off to something roughly equal +1/-1  hour to your timezone offset.
2017-12-07 14:42:58 +01:00
..
about_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
admin_dashboard_data_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
api_key_spec.rb Validate uniquness of `api_key`. 2017-07-24 21:46:08 +09:00
application_request_spec.rb moving redis to readonly mode destablizes the test suite 2017-10-25 14:39:49 +11:00
backup_spec.rb FEATURE: Support subfolders in `SiteSetting.s3_backup_bucket`. 2016-08-15 16:14:51 +08:00
badge_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
badge_type_spec.rb Add spec to cover Badge Type has many Badges relation 2017-09-20 00:51:32 -03:00
category_featured_topic_spec.rb Correct erratic spec failure 2017-08-17 15:26:31 -04:00
category_featured_user_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
category_group_spec.rb Enums that are used in tables need to be stable 2016-01-08 20:43:11 +05:30
category_list_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
category_spec.rb FIX: deleting category background images sometimes has no effect 2017-10-04 17:04:37 -04:00
category_user_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
color_scheme_color_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
color_scheme_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
developer_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
digest_email_site_setting_spec.rb FEATURE: More digest email frequency options. Digests can be sent as often as every 30 minutes. 2016-03-02 15:43:47 -05:00
directory_item_spec.rb FIX: stop counting PMs, deleted topics and whispers in directory and user stats 2017-11-20 16:44:09 +11:00
discourse_single_sign_on_spec.rb FIX: SSO email match should be case insensitive 2017-11-08 20:37:41 +05:30
draft_sequence_spec.rb Improve specs. 2017-09-25 13:49:00 +08:00
draft_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
email_change_request_spec.rb FIX: Don't allow invalid email to be saved. 2016-12-21 17:47:11 +08:00
email_log_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
email_token_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
embeddable_host_spec.rb FIX: First load of embed comments would always fail on WebKit 2017-08-02 17:43:31 -03:00
emoji_spec.rb Fixes emoji name to code missing tones 2017-06-13 14:10:26 -04:00
given_daily_like_spec.rb FEATURE: remove the timecop gem 2017-07-24 12:11:10 -04:00
global_setting_spec.rb FEATURE: Allow plugins to easily add defaults to GlobalSetting 2017-11-16 08:39:29 +11:00
group_history_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
group_spec.rb REFACTOR: Track manual locked user levels separately from groups 2017-11-27 11:23:44 -05:00
group_user_spec.rb FEATURE: default notification level for group messages 2017-04-20 15:47:35 -04:00
incoming_link_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
incoming_links_report_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
invite_redeemer_spec.rb FIX: invited users were not granted trust level based on their group 2017-11-23 22:19:28 +05:30
invite_spec.rb FIX: counting invites didn't work 2017-11-14 11:40:07 +01:00
locale_site_setting_spec.rb Support for finding new locales in plugins 2017-11-15 11:20:04 -05:00
mailing_list_mode_site_setting_spec.rb Remove daily mailing mode option as it doesn't scale. 2017-05-05 12:21:50 +08:00
notification_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
optimized_image_spec.rb SECURITY: protect upload params, only allow very strict filenames 2016-12-19 10:16:18 +11:00
permalink_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
plugin_store_spec.rb REFACTOR: Instance methods added to 'PluginStore' model for easy access (#5315) 2017-11-15 10:10:20 -05:00
post_action_spec.rb Revert "Revert "PERF: improve speed of rate limiter"" 2017-12-04 21:23:11 +11:00
post_action_type_spec.rb Enums that are used in tables need to be stable 2016-01-08 20:43:11 +05:30
post_analyzer_spec.rb FEATURE: escape HTML when cooking plaintext emails 2017-11-15 20:22:11 +01:00
post_detail_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
post_mover_spec.rb FIX: incoming and outgoing emails got lost when post was moved 2017-11-24 11:45:36 +01:00
post_reply_spec.rb FIX: Update post replies when we move posts. (#4324) 2016-07-13 17:34:21 +02:00
post_spec.rb Missed a whitelist, compensate for strict classes 2017-10-16 10:46:01 +11:00
post_timing_spec.rb FIX: more accurate counting of posts read. Skipping to the end of a topic does not count all posts as read in user stats. 2017-11-17 16:08:46 -05:00
post_upload_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
queued_post_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
quoted_post_spec.rb FIX: don't raise exception when a quote was already extracted 2016-11-30 17:18:34 +01:00
remote_theme_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
report_spec.rb FIX: dashboard posts report was including posts in daily data, but not in totals 2017-11-02 18:46:28 -04:00
s3_region_site_setting_spec.rb add 'us-east-2' S3 region 2017-07-10 15:36:38 +02:00
screened_email_spec.rb FEATURE: remove the timecop gem 2017-07-24 12:11:10 -04:00
screened_ip_address_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
screened_url_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
search_log_spec.rb FEATURE: support search click through tracking for user, category and tags 2017-12-01 12:04:55 +05:30
site_setting_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
site_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
stylesheet_cache_spec.rb Silence CSS logging in development - it's way too noisy 2017-08-16 10:59:56 -04:00
tag_spec.rb FIX: wrongs counts on tags with deleted topics 2017-08-22 16:55:05 -04:00
tag_user_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
theme_field_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
theme_spec.rb FIX: child theme component vars not resolved in parent 2017-11-14 15:22:59 +11:00
top_menu_item_spec.rb Remove use of stubs in specs. 2017-07-07 13:18:53 +09:00
top_topic_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic_allowed_user_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
topic_converter_spec.rb FIX: topic counts after converting topic to/from public and private 2017-11-09 15:33:44 -05:00
topic_embed_spec.rb FIX: do not escape already escaped chars in URL 2017-09-22 17:36:44 +02:00
topic_featured_users_spec.rb FIX: If posts are deleted they should be updated in consistency jobs 2016-06-21 13:05:56 -04:00
topic_invite_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
topic_link_click_spec.rb FEATURE: allow specifying s3 config via globals 2017-10-06 16:20:01 +11:00
topic_link_spec.rb FIX: topic link extraction shouldn't fail when the parsed URL has no path 2017-10-19 15:26:37 +02:00
topic_list_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic_participants_summary_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
topic_posters_summary_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
topic_spec.rb FIX: topic timer offset applied two times 2017-12-07 14:42:58 +01:00
topic_timer_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
topic_tracking_state_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic_user_spec.rb FIX: more accurate counting of posts read. Skipping to the end of a topic does not count all posts as read in user stats. 2017-11-17 16:08:46 -05:00
topic_view_item_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
translation_override_spec.rb FIX: Re-enable invalid interpolation keys check and allow default keys to be left out of translation overrides. 2017-11-27 11:00:08 +08:00
trust_level3_requirements_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
twitter_user_info_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
unsubscribe_key_spec.rb FEATURE: simpler and friendlier unsubscribe workflow 2016-06-17 11:28:49 +10:00
upload_spec.rb Correct short url decoding for sha1s leading with zero 2017-08-23 11:08:18 -04:00
user_action_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
user_api_key_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
user_archived_message_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
user_auth_token_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
user_avatar_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
user_badge.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
user_history_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
user_open_id_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
user_option_spec.rb FIX: redirect to top wasn't working 2017-10-04 22:08:41 +02:00
user_profile_spec.rb FIX: display emojis (set, custom and native) in bio excerpt 2017-08-15 10:05:09 +02:00
user_profile_view_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
user_search_spec.rb FEATURE: user directory returns staged users during search 2017-11-19 01:17:31 +01:00
user_spec.rb FIX: Password required flag should be cleared whenever clearing the raw password (#5384) 2017-12-01 15:19:24 +11:00
user_stat_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
user_summary_spec.rb SECURITY: user summary could show topic links you have no permissions to 2016-01-28 11:12:12 +11:00
user_visit_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
username_validator_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
watched_word_spec.rb FEATURE: Watched Words: when posts contain words, do one of flag, require approval, censor, or block 2017-07-26 11:01:09 -04:00
web_hook_event_spec.rb FEATURE: Retain the latest 30 days of WebHookEvent records by default. 2017-11-08 14:11:01 +08:00
web_hook_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00