discourse/spec/components
Guo Xiang Tan 142571bba0 Remove use of rescue nil.
* `rescue nil` is a really bad pattern to use in our code base.
  We should rescue errors that we expect the code to throw and
  not rescue everything because we're unsure of what errors the
  code would throw. This would reduce the amount of pain we face
  when debugging why something isn't working as expexted. I've
  been bitten countless of times by errors being swallowed as a
  result during debugging sessions.
2018-04-02 13:52:51 +08:00
..
active_record/connection_adapters Make rubocop happy. 2017-12-04 10:55:31 +08:00
auth Prefer to use primary email for new user creation over other available emails 2018-03-19 17:10:35 +05:30
common_passwords Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
concern New interface to upsert custom fields 2018-03-02 12:45:52 -05:00
email FIX: Try fixing unparsable email addresses 2018-03-27 18:28:54 +02:00
file_store FEATURE: allow specifying s3 config via globals 2017-10-06 16:20:01 +11:00
freedom_patches FEATURE: Allow plugins to register a new locale 2018-01-25 14:57:41 +01:00
highlight_js Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
import Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
middleware Merge pull request #5700 from discourse/crawl-block 2018-03-27 15:06:03 -04:00
migration Call on_drop only when tables/columns are dropped 2018-03-27 13:18:13 +11:00
onebox/engine SECURITY: correct local onebox category checks 2018-02-14 10:40:46 +11:00
plugin FEATURE: Allow plugins to register a new locale 2018-01-25 14:57:41 +01:00
scheduler PERF: stop running background work between requests 2017-11-23 15:48:47 +11:00
sidekiq Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
site_settings FIX: Use a distrbuted cache for site locale. 2017-09-12 19:36:17 +08:00
stylesheet Merge branch 's3_refactor' 2017-10-09 10:27:52 +11:00
theme_store FEATURE: prototype of local theme directory watcher 2018-03-12 18:36:06 +11:00
validators FIX: do not treat :: as a valid emoji 2018-03-05 15:35:24 +01:00
wizard Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
admin_confirmation_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
admin_user_index_query_spec.rb correct test that does not work with discobot 2017-12-04 18:20:05 +11:00
archetype_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
avatar_lookup_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
cache_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
composer_messages_finder_spec.rb improve reviving_old_topic education message 2018-01-26 00:06:53 +05:30
content_buffer_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
cooked_post_processor_spec.rb FIX: respect nofollow settings for onebox links 2018-03-26 18:21:16 +05:30
crawler_detection_spec.rb FEATURE: control which web crawlers can access using a whitelist or blacklist 2018-03-22 15:41:02 -04:00
current_user_spec.rb FEATURE: per client user tokens 2017-02-07 09:22:16 -05:00
directory_helper_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
discourse_diff_spec.rb correct spec regression 2018-01-30 08:54:37 +11:00
discourse_event_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
discourse_hub_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
discourse_i18n_spec.rb FIX: Server didn't use default_locale as fallback locale 2018-01-25 14:57:41 +01:00
discourse_plugin_registry_spec.rb Feature: Add service worker registration method to plugin API 2017-11-28 14:01:41 +08:00
discourse_plugin_spec.rb More randomly failing specs fixes. 2016-09-05 19:33:03 +08:00
discourse_redis_spec.rb FIX: in readonly mode don't double count pages 2017-10-25 13:19:43 +11:00
discourse_spec.rb FEATURE: allow plugins to easily detect if running in Rack 2017-11-16 08:39:29 +11:00
discourse_tagging_spec.rb FEATURE: option for tags in a tag group to be visible only to staff 2018-03-26 17:05:09 -04:00
discourse_tagging_spec.rb.rb FEATURE: option for tags in a tag group to be visible only to staff 2018-03-26 17:05:09 -04:00
discourse_updates_spec.rb REFACTOR: Avoid duplicated logic on server and client. 2017-11-21 17:10:04 +08:00
distributed_cache_spec.rb Make PostgreSQL failover work with distributed cache. 2017-10-20 17:15:29 +08:00
distributed_memoizer_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
distributed_mutex_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
email_cook_spec.rb FEATURE: convert plain text emails to markdown 2017-12-06 01:47:51 +01:00
email_updater_spec.rb FEATURE: the hide_email_address_taken setting works with the change email address form in user preferences 2017-10-04 11:41:25 -04:00
enum_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
excerpt_parser_spec.rb FIX: Calculation of text length for <details> in excerpt was wrong 2018-03-12 16:55:23 +01:00
fallback_locale_list_spec.rb FEATURE: Allow plugins to register a new locale 2018-01-25 14:57:41 +01:00
feed_element_installer_spec.rb FEATURE: Replace SimpleRSS with Ruby RSS module (#5311) 2017-12-06 10:45:09 +11:00
feed_item_accessor_spec.rb FEATURE: Replace SimpleRSS with Ruby RSS module (#5311) 2017-12-06 10:45:09 +11:00
file_helper_spec.rb FIX: don't double request when downloading a file 2018-02-24 12:35:57 +01:00
filter_best_posts_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
final_destination_spec.rb Remove use of rescue nil. 2018-04-02 13:52:51 +08:00
flag_query_spec.rb FEATURE: New modal to show flags received for a user 2018-01-17 15:08:08 -05:00
flag_settings_spec.rb Refactor flag types for more customization 2017-10-19 13:55:23 -04:00
gaps_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
global_path_spec.rb FIX: when CDN assets are not in root path source maps fail 2016-02-05 13:05:47 +11:00
guardian_spec.rb FIX: user should not be able to invite to PM if trust level requirment not met 2018-03-08 14:59:04 +05:30
has_errors_spec.rb FIX: show proper error message when no user selected for private message 2016-05-05 18:47:08 +05:30
hijack_spec.rb ensure we do not override charset for content type 2018-01-25 18:43:42 +11:00
html_prettify_spec.rb FEATURE: stop escaping special chars in title prettify 2017-03-13 10:02:20 -04:00
html_to_markdown_spec.rb FIX: handle <pre> inside <blockquote> in html_to_markdown 2018-02-26 23:28:02 +01:00
image_sizer_spec.rb Nuke all SiteSetting.stubs from our codebase. 2017-07-07 15:09:14 +09:00
inline_oneboxer_spec.rb FIX: don't double request when downloading a file 2018-02-24 12:35:57 +01:00
js_locale_helper_spec.rb FEATURE: Allow plugins to register a new locale 2018-01-25 14:57:41 +01:00
json_error_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
letter_avatar_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
method_profiler_spec.rb FIX: stop double counting net calls in logs 2018-02-28 10:45:11 +11:00
new_post_manager_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
new_post_result_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
oneboxer_spec.rb SECURITY: Oneboxer should escape the URL before processing 2018-03-15 19:57:55 +05:30
onpdiff_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
pbkdf2_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
pinned_check_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
plain_text_to_markdown_spec.rb FEATURE: convert plain text emails to markdown 2017-12-06 01:47:51 +01:00
post_action_creator_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
post_creator_spec.rb SECURITY: Any group can be invited into a PM. 2017-12-14 14:57:48 +08:00
post_destroyer_spec.rb FIX: be consistent with how first posts in topics are counted. do like DirectoryItem.refresh_period :all 2017-11-10 12:18:25 -05:00
post_enqueuer_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
post_locker_spec.rb FEATURE: Staff members can lock posts 2018-01-26 14:01:30 -05:00
post_merger_spec.rb Improve MessageBus.track_publish to allow filter by channel. 2017-10-02 11:34:57 +08:00
post_revisor_spec.rb FIX: Not logging old post contents properly 2018-03-14 15:01:36 -04:00
pretty_text_spec.rb FIX: Calculation of text length for <details> in excerpt was wrong 2018-03-12 16:55:23 +01:00
promotion_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
quote_comparer_spec.rb FEATURE: Add quote-modified class if a quote has been modified 2018-03-13 13:41:06 -04:00
rate_limiter_spec.rb Add guard for nil in our RateLimiter. 2018-03-01 13:20:42 +08:00
redis_store_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
retrieve_title_spec.rb PERF: ability to crawl for titles without extra HEAD req 2018-01-29 15:40:12 +11:00
rtl_spec.rb Nuke all SiteSetting.stubs from our codebase. 2017-07-07 15:09:14 +09:00
s3_helper_spec.rb FIX: error setting tombstone bucket when set to old version 2017-11-13 15:36:45 +11:00
score_calculator_spec.rb PERF: make score calculator cheaper when site has long topics 2016-07-22 09:48:44 +10:00
search_spec.rb FEATURE: search within title using in:title 2018-02-20 14:41:21 +11:00
secure_session_spec.rb SECURITY: prevent reuse of password reset 2016-12-19 18:00:22 +11:00
site_setting_extension_spec.rb FIX: bypass all site setting work for shadowed method 2017-10-27 11:12:44 +11:00
slug_spec.rb Downcase encoded slug by default and more specs 2017-10-26 16:50:29 +08:00
spam_handler_spec.rb Nuke all SiteSetting.stubs from our codebase. 2017-07-07 15:09:14 +09:00
sql_builder_spec.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
stats_socket_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
suggested_topics_builder_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
system_message_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
text_cleaner_spec.rb FIX: strip zero width spaces from topic title 2018-02-21 00:12:39 +05:30
text_sentinel_spec.rb rename 'min_private_message_{post/title}_length' to 'min_personal_message_{post/title}_length' 2018-02-01 13:25:29 +05:30
theme_settings_manager_spec.rb FEATURE: Theme settings (2) (#5611) 2018-03-04 19:04:23 -05:00
theme_settings_parser_spec.rb FEATURE: Theme settings (2) (#5611) 2018-03-04 19:04:23 -05:00
timeline_lookup_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic_creator_spec.rb rename 'enable_private_email_messages' to 'enable_personal_email_messages' 2018-02-01 13:25:29 +05:30
topic_publisher_spec.rb FIX: Update last_version_at when publishing 2018-03-26 16:06:20 -04:00
topic_query_spec.rb FIX: Don't include shared drafts in global latest 2018-03-26 10:43:55 -04:00
topic_retriever_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic_view_spec.rb FIX: do not log personal message view if there exists a similar log in previous hour 2018-03-11 09:23:32 +05:30
topics_bulk_action_spec.rb Use PostDestroyer to delete topics when performing bulk operation (#5202) 2017-09-28 14:22:49 +02:00
trashable_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
trust_level_spec.rb Enums that are used in tables need to be stable 2016-01-08 20:43:11 +05:30
unread_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
url_helper_spec.rb Move escape_uri method to a more suitable place 2017-12-12 20:17:46 +01:00
user_name_suggester_spec.rb FIX: Don't suggest invalid username 2016-02-21 23:28:57 +01:00
version_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00