From c9dab6fd087dd400c904441657f53134393fb298 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 1 Mar 2022 17:50:50 +0000 Subject: [PATCH] DEV: Automatically require 'rails_helper' in all specs (#16077) It's very easy to forget to add `require 'rails_helper'` at the top of every core/plugin spec file, and omissions can cause some very confusing/sporadic errors. By setting this flag in `.rspec`, we can remove the need for `require 'rails_helper'` entirely. --- .rspec | 1 + .../discourse-local-dates/spec/integration/local_dates_spec.rb | 2 -- plugins/discourse-local-dates/spec/lib/pretty_text_spec.rb | 2 -- plugins/discourse-local-dates/spec/models/post_spec.rb | 2 -- .../discourse_narrative_bot/advanced_user_narrative_spec.rb | 2 -- .../spec/discourse_narrative_bot/new_user_narrative_spec.rb | 2 -- .../spec/discourse_narrative_bot/store_spec.rb | 2 -- .../spec/discourse_narrative_bot/track_selector_spec.rb | 2 -- .../spec/jobs/onceoff/grant_badges_spec.rb | 2 -- .../spec/jobs/onceoff/remap_old_bot_images_spec.rb | 2 -- .../spec/jobs/send_default_welcome_message_spec.rb | 2 -- .../spec/lib/certificate_generator_spec.rb | 2 -- .../spec/requests/discobot_certificate_spec.rb | 2 -- .../spec/requests/discobot_welcome_post_spec.rb | 2 -- plugins/discourse-narrative-bot/spec/user_spec.rb | 2 -- plugins/discourse-presence/spec/integration/presence_spec.rb | 2 -- plugins/poll/spec/lib/poll_spec.rb | 2 -- plugins/poll/spec/lib/polls_updater_spec.rb | 2 -- plugins/poll/spec/lib/pretty_text_spec.rb | 2 -- plugins/poll/spec/models/poll_spec.rb | 2 -- plugins/poll/spec/serializers/poll_option_serializer_spec.rb | 2 -- plugins/styleguide/spec/integration/access_spec.rb | 2 -- plugins/styleguide/spec/integration/assets_spec.rb | 2 -- spec/helpers/application_helper_spec.rb | 2 -- spec/helpers/topics_helper_spec.rb | 2 -- spec/helpers/user_notifications_helper_spec.rb | 2 -- spec/import_export/category_exporter_spec.rb | 1 - spec/import_export/category_structure_exporter_spec.rb | 1 - spec/import_export/group_exporter_spec.rb | 1 - spec/import_export/importer_spec.rb | 1 - spec/import_export/topic_exporter_spec.rb | 1 - spec/initializers/track_setting_changes_spec.rb | 2 -- spec/integration/api_keys_spec.rb | 2 -- spec/integration/auto_reject_reviewable_users_spec.rb | 2 -- spec/integration/category_tag_spec.rb | 2 -- spec/integration/content_security_policy_spec.rb | 2 -- spec/integration/email_style_spec.rb | 2 -- spec/integration/flags_spec.rb | 2 -- spec/integration/group_spec.rb | 2 -- spec/integration/invalid_request_spec.rb | 2 -- spec/integration/invite_only_registration_spec.rb | 2 -- spec/integration/message_bus_spec.rb | 2 -- spec/integration/multisite_cookies_spec.rb | 2 -- spec/integration/multisite_spec.rb | 2 -- spec/integration/rate_limiting_spec.rb | 2 -- spec/integration/same_ip_spammers_spec.rb | 2 -- spec/integration/spam_rules_spec.rb | 2 -- spec/integration/topic_auto_close_spec.rb | 2 -- spec/integration/topic_thumbnail_spec.rb | 2 -- spec/integration/watched_words_spec.rb | 2 -- spec/integrity/coding_style_spec.rb | 2 -- spec/integrity/common_mark_spec.rb | 2 -- spec/integrity/i18n_spec.rb | 1 - spec/integrity/js_constants_spec.rb | 2 -- spec/integrity/oj_spec.rb | 2 -- spec/integrity/onceoff_integrity_spec.rb | 2 -- spec/integrity/site_setting_spec.rb | 1 - spec/jobs/about_stats_spec.rb | 2 -- spec/jobs/activation_reminder_emails_spec.rb | 2 -- spec/jobs/auto_expire_user_api_keys_spec.rb | 2 -- spec/jobs/auto_queue_handler_spec.rb | 2 -- spec/jobs/automatic_group_membership_spec.rb | 2 -- spec/jobs/bookmark_reminder_notifications_spec.rb | 2 -- spec/jobs/bulk_grant_trust_level_spec.rb | 2 -- spec/jobs/bulk_invite_spec.rb | 2 -- spec/jobs/bump_topic_spec.rb | 2 -- spec/jobs/clean_dismissed_topic_users_spec.rb | 2 -- spec/jobs/clean_up_associated_accounts_spec.rb | 2 -- spec/jobs/clean_up_crawler_stats_spec.rb | 2 -- spec/jobs/clean_up_email_change_requests_spec.rb | 2 -- spec/jobs/clean_up_email_logs_spec.rb | 2 -- spec/jobs/clean_up_inactive_users_spec.rb | 2 -- spec/jobs/clean_up_post_reply_keys_spec.rb | 2 -- spec/jobs/clean_up_unused_staged_users_spec.rb | 2 -- spec/jobs/clean_up_uploads_spec.rb | 2 -- spec/jobs/clean_up_user_export_topics_spec.rb | 2 -- spec/jobs/cleanup_imap_sync_log_spec.rb | 2 -- spec/jobs/close_topic_spec.rb | 2 -- spec/jobs/correct_missing_dualstack_urls_spec.rb | 2 -- spec/jobs/crawl_topic_link_spec.rb | 2 -- spec/jobs/create_linked_topic_spec.rb | 1 - spec/jobs/create_missing_avatars_spec.rb | 2 -- spec/jobs/create_recent_post_search_indexes_spec.rb | 2 -- spec/jobs/create_user_reviewable_spec.rb | 2 -- spec/jobs/dashboard_stats_spec.rb | 2 -- spec/jobs/delete_replies_spec.rb | 2 -- spec/jobs/delete_topic_spec.rb | 2 -- spec/jobs/disable_bootstrap_mode_spec.rb | 2 -- spec/jobs/download_avatar_from_url_spec.rb | 2 -- spec/jobs/download_backup_email_spec.rb | 2 -- spec/jobs/download_profile_background_from_url_spec.rb | 2 -- spec/jobs/emit_web_hook_event_spec.rb | 1 - spec/jobs/enable_bootstrap_mode_spec.rb | 2 -- spec/jobs/enqueue_digest_emails_spec.rb | 2 -- spec/jobs/enqueue_suspect_users_spec.rb | 2 -- spec/jobs/ensure_s3_uploads_existence_spec.rb | 2 -- spec/jobs/export_csv_file_spec.rb | 2 -- spec/jobs/export_user_archive_spec.rb | 1 - spec/jobs/feature_topic_users_spec.rb | 1 - spec/jobs/fix_out_of_sync_user_uploaded_avatar_spec.rb | 2 -- spec/jobs/fix_primary_emails_for_staged_users_spec.rb | 2 -- spec/jobs/fix_s3_etags_spec.rb | 2 -- spec/jobs/fix_user_usernames_and_groups_names_clash_spec.rb | 2 -- spec/jobs/grant_anniversary_badges_spec.rb | 2 -- spec/jobs/grant_new_user_of_the_month_badges_spec.rb | 2 -- spec/jobs/heartbeat_spec.rb | 2 -- spec/jobs/ignored_users_summary_spec.rb | 2 -- spec/jobs/invalidate_inactive_admins_spec.rb | 2 -- spec/jobs/invite_email_spec.rb | 2 -- spec/jobs/jobs_base_spec.rb | 2 -- spec/jobs/jobs_spec.rb | 2 -- spec/jobs/mass_award_badge_spec.rb | 2 -- spec/jobs/migrate_badge_image_to_uploads_spec.rb | 2 -- spec/jobs/migrate_group_flair_images_spec.rb | 2 -- spec/jobs/notify_mailing_list_subscribers_spec.rb | 2 -- spec/jobs/notify_moved_posts_spec.rb | 2 -- spec/jobs/notify_reviewable_spec.rb | 2 -- spec/jobs/notify_tag_change_spec.rb | 2 -- spec/jobs/old_keys_reminder_spec.rb | 2 -- spec/jobs/open_topic_spec.rb | 2 -- spec/jobs/pending_queued_posts_reminder_spec.rb | 2 -- spec/jobs/pending_reviewables_reminder_spec.rb | 2 -- spec/jobs/pending_users_reminder_spec.rb | 2 -- spec/jobs/periodical_updates_spec.rb | 2 -- spec/jobs/poll_mailbox_spec.rb | 2 -- spec/jobs/post_update_topic_tracking_state_spec.rb | 2 -- spec/jobs/post_uploads_recovery_spec.rb | 2 -- spec/jobs/problem_checks_spec.rb | 2 -- spec/jobs/process_bulk_invite_emails_spec.rb | 2 -- spec/jobs/process_email_spec.rb | 2 -- spec/jobs/process_post_spec.rb | 1 - spec/jobs/process_shelved_notifications_spec.rb | 2 -- spec/jobs/publish_topic_to_category_spec.rb | 2 -- spec/jobs/pull_hotlinked_images_spec.rb | 1 - spec/jobs/pull_user_profile_hotlinked_images_spec.rb | 2 -- spec/jobs/purge_expired_ignored_users_spec.rb | 2 -- spec/jobs/rebake_custom_emoji_posts_spec.rb | 2 -- spec/jobs/regular/bulk_user_title_update_spec.rb | 2 -- spec/jobs/regular/group_smtp_email_spec.rb | 2 -- spec/jobs/reindex_search_spec.rb | 2 -- spec/jobs/remove_banner_spec.rb | 2 -- spec/jobs/reviewable_priorities_spec.rb | 2 -- spec/jobs/send_system_message_spec.rb | 1 - spec/jobs/suspicious_login_spec.rb | 2 -- spec/jobs/sync_topic_user_bookmarked_spec.rb | 2 -- spec/jobs/tl3_promotions_spec.rb | 2 -- spec/jobs/toggle_topic_closed_spec.rb | 2 -- spec/jobs/topic_timer_enqueuer_spec.rb | 2 -- spec/jobs/truncate_user_flag_stats_spec.rb | 2 -- spec/jobs/unsilence_users_spec.rb | 2 -- spec/jobs/update_animated_uploads_spec.rb | 2 -- spec/jobs/update_gravatar_spec.rb | 2 -- spec/jobs/update_s3_inventory_spec.rb | 1 - spec/jobs/update_username_spec.rb | 2 -- spec/jobs/user_email_spec.rb | 2 -- spec/lib/admin_confirmation_spec.rb | 2 -- spec/lib/admin_user_index_query_spec.rb | 2 -- spec/lib/archetype_spec.rb | 1 - spec/lib/auth/default_current_user_provider_spec.rb | 2 -- spec/lib/auth/discord_authenticator_spec.rb | 2 -- spec/lib/auth/facebook_authenticator_spec.rb | 2 -- spec/lib/auth/github_authenticator_spec.rb | 2 -- spec/lib/auth/google_oauth2_authenticator_spec.rb | 2 -- spec/lib/auth/managed_authenticator_spec.rb | 2 -- .../auth/omniauth_strategies/discourse_google_oauth2_spec.rb | 2 -- spec/lib/auth/result_spec.rb | 2 -- spec/lib/auth/twitter_authenticator_spec.rb | 2 -- spec/lib/backup_restore/backup_file_handler_multisite_spec.rb | 1 - spec/lib/backup_restore/backup_file_handler_spec.rb | 1 - spec/lib/backup_restore/backuper_spec.rb | 2 -- spec/lib/backup_restore/database_restorer_multisite_spec.rb | 1 - spec/lib/backup_restore/database_restorer_spec.rb | 1 - spec/lib/backup_restore/local_backup_store_spec.rb | 1 - spec/lib/backup_restore/meta_data_handler_spec.rb | 1 - spec/lib/backup_restore/s3_backup_store_spec.rb | 1 - spec/lib/backup_restore/system_interface_multisite_spec.rb | 1 - spec/lib/backup_restore/system_interface_spec.rb | 1 - spec/lib/backup_restore/uploads_restorer_spec.rb | 1 - spec/lib/bookmark_manager_spec.rb | 2 -- spec/lib/bookmark_query_spec.rb | 2 -- spec/lib/bookmark_reminder_notification_handler_spec.rb | 2 -- spec/lib/browser_detection_spec.rb | 1 - spec/lib/cache_spec.rb | 1 - spec/lib/category_badge_spec.rb | 1 - spec/lib/common_passwords/common_passwords_spec.rb | 2 -- spec/lib/composer_messages_finder_spec.rb | 1 - spec/lib/compression/engine_spec.rb | 2 -- spec/lib/concern/cached_counting_spec.rb | 2 -- spec/lib/concern/category_hashtag_spec.rb | 2 -- spec/lib/concern/has_custom_fields_spec.rb | 2 -- spec/lib/concern/has_search_data_spec.rb | 2 -- spec/lib/concern/positionable_spec.rb | 2 -- spec/lib/concern/searchable_spec.rb | 2 -- spec/lib/concern/second_factor_manager_spec.rb | 2 -- spec/lib/content_buffer_spec.rb | 1 - spec/lib/content_security_policy/builder_spec.rb | 2 -- spec/lib/content_security_policy_spec.rb | 2 -- spec/lib/cooked_post_processor_spec.rb | 1 - spec/lib/crawler_detection_spec.rb | 2 -- spec/lib/current_user_spec.rb | 2 -- spec/lib/db_helper_spec.rb | 2 -- spec/lib/directory_helper_spec.rb | 2 -- spec/lib/discourse_diff_spec.rb | 1 - spec/lib/discourse_event_spec.rb | 2 -- spec/lib/discourse_hub_spec.rb | 2 -- spec/lib/discourse_js_processor_spec.rb | 1 - spec/lib/discourse_plugin_registry_spec.rb | 1 - spec/lib/discourse_redis_spec.rb | 2 -- spec/lib/discourse_spec.rb | 1 - spec/lib/discourse_tagging_spec.rb | 1 - spec/lib/discourse_updates_spec.rb | 2 -- spec/lib/distributed_cache_spec.rb | 2 -- spec/lib/distributed_memoizer_spec.rb | 2 -- spec/lib/distributed_mutex_spec.rb | 2 -- spec/lib/email/authentication_results_spec.rb | 1 - spec/lib/email/cleaner_spec.rb | 1 - spec/lib/email/email_spec.rb | 1 - spec/lib/email/message_builder_spec.rb | 1 - spec/lib/email/processor_spec.rb | 1 - spec/lib/email/receiver_spec.rb | 1 - spec/lib/email/renderer_spec.rb | 1 - spec/lib/email/sender_spec.rb | 1 - spec/lib/email/styles_spec.rb | 1 - spec/lib/email_cook_spec.rb | 1 - spec/lib/email_updater_spec.rb | 2 -- spec/lib/encodings_spec.rb | 2 -- spec/lib/enum_spec.rb | 1 - spec/lib/excerpt_parser_spec.rb | 1 - spec/lib/feed_element_installer_spec.rb | 2 -- spec/lib/feed_item_accessor_spec.rb | 2 -- spec/lib/file_helper_spec.rb | 1 - spec/lib/file_store/base_store_spec.rb | 2 -- spec/lib/file_store/local_store_spec.rb | 1 - spec/lib/file_store/s3_store_spec.rb | 1 - spec/lib/filter_best_posts_spec.rb | 1 - spec/lib/final_destination_spec.rb | 1 - spec/lib/flag_settings_spec.rb | 1 - spec/lib/freedom_patches/safe_buffer_spec.rb | 2 -- spec/lib/freedom_patches/schema_migration_details_spec.rb | 2 -- spec/lib/freedom_patches/seed_fu_spec.rb | 2 -- spec/lib/freedom_patches/translate_accelerator_spec.rb | 2 -- spec/lib/gaps_spec.rb | 1 - spec/lib/global_path_spec.rb | 1 - spec/lib/group_email_credentials_check_spec.rb | 1 - spec/lib/guardian/topic_guardian_spec.rb | 2 -- spec/lib/guardian/user_guardian_spec.rb | 2 -- spec/lib/guardian_spec.rb | 2 -- spec/lib/has_errors_spec.rb | 1 - spec/lib/highlight_js/highlight_js_spec.rb | 2 -- spec/lib/hijack_spec.rb | 2 -- spec/lib/html_prettify_spec.rb | 1 - spec/lib/html_to_markdown_spec.rb | 1 - spec/lib/i18n/discourse_i18n_spec.rb | 1 - spec/lib/i18n/fallback_locale_list_spec.rb | 1 - spec/lib/i18n/i18n_interpolation_keys_finder_spec.rb | 1 - spec/lib/image_sizer_spec.rb | 1 - spec/lib/imap/providers/detector_spec.rb | 2 -- spec/lib/imap/providers/generic_spec.rb | 2 -- spec/lib/imap/providers/gmail_spec.rb | 2 -- spec/lib/imap/sync_spec.rb | 1 - spec/lib/import/normalize_spec.rb | 2 -- spec/lib/inline_oneboxer_spec.rb | 2 -- spec/lib/introduction_updater_spec.rb | 1 - spec/lib/js_locale_helper_spec.rb | 1 - spec/lib/json_error_spec.rb | 2 -- spec/lib/letter_avatar_spec.rb | 1 - spec/lib/message_id_service_spec.rb | 2 -- spec/lib/method_profiler_spec.rb | 2 -- spec/lib/middleware/anonymous_cache_spec.rb | 2 -- spec/lib/middleware/discourse_public_exceptions_spec.rb | 2 -- spec/lib/middleware/enforce_hostname_spec.rb | 2 -- spec/lib/middleware/request_tracker_spec.rb | 2 -- spec/lib/migration/column_dropper_spec.rb | 2 -- spec/lib/migration/safe_migrate_spec.rb | 2 -- spec/lib/migration/table_dropper_spec.rb | 2 -- spec/lib/mini_sql_multisite_connection_spec.rb | 2 -- spec/lib/new_post_manager_spec.rb | 1 - spec/lib/new_post_result_spec.rb | 1 - spec/lib/onebox/domain_checker_spec.rb | 2 -- spec/lib/onebox/engine/allowlisted_generic_onebox_spec.rb | 2 -- spec/lib/onebox/engine/amazon_onebox_spec.rb | 2 -- spec/lib/onebox/engine/animated_image_onebox_spec.rb | 2 -- spec/lib/onebox/engine/audio_onebox_spec.rb | 2 -- spec/lib/onebox/engine/cloudapp_onebox_spec.rb | 2 -- spec/lib/onebox/engine/gfycat_onebox_spec.rb | 2 -- spec/lib/onebox/engine/github_actions_onebox_spec.rb | 2 -- spec/lib/onebox/engine/github_blob_onebox_spec.rb | 2 -- spec/lib/onebox/engine/github_commit_onebox_spec.rb | 2 -- spec/lib/onebox/engine/github_folder_onebox_spec.rb | 2 -- spec/lib/onebox/engine/github_gist_onebox_spec.rb | 2 -- spec/lib/onebox/engine/github_pullrequest_onebox_spec.rb | 2 -- spec/lib/onebox/engine/gitlab_blob_onebox_spec.rb | 2 -- spec/lib/onebox/engine/google_docs_onebox_spec.rb | 2 -- spec/lib/onebox/engine/google_drive_onebox_spec.rb | 2 -- spec/lib/onebox/engine/google_maps_onebox_spec.rb | 2 -- spec/lib/onebox/engine/google_photos_onebox_spec.rb | 2 -- spec/lib/onebox/engine/google_play_app_onebox_spec.rb | 2 -- spec/lib/onebox/engine/hackernews_spec.rb | 2 -- spec/lib/onebox/engine/html_spec.rb | 2 -- spec/lib/onebox/engine/image_onebox_spec.rb | 2 -- spec/lib/onebox/engine/imgur_onebox_spec.rb | 2 -- spec/lib/onebox/engine/instagram_onebox_spec.rb | 2 -- spec/lib/onebox/engine/json_spec.rb | 2 -- spec/lib/onebox/engine/kaltura_onebox_spec.rb | 2 -- spec/lib/onebox/engine/pdf_onebox_spec.rb | 2 -- spec/lib/onebox/engine/pubmed_onebox_spec.rb | 2 -- spec/lib/onebox/engine/reddit_media_onebox.rb | 2 -- spec/lib/onebox/engine/slides_onebox_spec.rb | 2 -- spec/lib/onebox/engine/stack_exchange_onebox_spec.rb | 2 -- spec/lib/onebox/engine/trello_onebox_spec.rb | 2 -- spec/lib/onebox/engine/twitch_clips_onebox_spec.rb | 2 -- spec/lib/onebox/engine/twitch_stream_onebox_spec.rb | 2 -- spec/lib/onebox/engine/twitch_video_onebox_spec.rb | 2 -- spec/lib/onebox/engine/twitter_status_onebox_spec.rb | 2 -- spec/lib/onebox/engine/typeform_onebox_spec.rb | 2 -- spec/lib/onebox/engine/video_onebox_spec.rb | 2 -- spec/lib/onebox/engine/wikimedia_onebox_spec.rb | 2 -- spec/lib/onebox/engine/wikipedia_onebox_spec.rb | 2 -- spec/lib/onebox/engine/wistia_onebox_spec.rb | 2 -- spec/lib/onebox/engine/xkcd_spec.rb | 2 -- spec/lib/onebox/engine/youku_onebox_spec.rb | 2 -- spec/lib/onebox/engine/youtube_onebox_spec.rb | 2 -- spec/lib/onebox/engine_spec.rb | 2 -- spec/lib/onebox/helpers_spec.rb | 2 -- spec/lib/onebox/layout_spec.rb | 2 -- spec/lib/onebox/matcher_spec.rb | 2 -- spec/lib/onebox/oembed_spec.rb | 1 - spec/lib/onebox/open_graph_spec.rb | 1 - spec/lib/onebox/preview_spec.rb | 2 -- spec/lib/onebox/status_check_spec.rb | 2 -- spec/lib/onebox_spec.rb | 2 -- spec/lib/oneboxer_spec.rb | 2 -- spec/lib/onpdiff_spec.rb | 1 - spec/lib/pbkdf2_spec.rb | 1 - spec/lib/pinned_check_spec.rb | 1 - spec/lib/plain_text_to_markdown_spec.rb | 1 - spec/lib/plugin/filter_manager_spec.rb | 2 -- spec/lib/plugin/instance_spec.rb | 2 -- spec/lib/plugin/metadata_spec.rb | 2 -- spec/lib/post_action_creator_spec.rb | 2 -- spec/lib/post_creator_spec.rb | 1 - spec/lib/post_destroyer_spec.rb | 2 -- spec/lib/post_jobs_enqueuer_spec.rb | 2 -- spec/lib/post_locker_spec.rb | 2 -- spec/lib/post_merger_spec.rb | 1 - spec/lib/post_revisor_spec.rb | 1 - spec/lib/presence_channel_spec.rb | 1 - spec/lib/pretty_text/helpers_spec.rb | 2 -- spec/lib/pretty_text_spec.rb | 1 - spec/lib/promotion_spec.rb | 1 - spec/lib/quote_comparer_spec.rb | 1 - spec/lib/rate_limiter/limit_exceeded_spec.rb | 2 -- spec/lib/rate_limiter_spec.rb | 1 - spec/lib/redis_store_spec.rb | 1 - spec/lib/retrieve_title_spec.rb | 2 -- spec/lib/rtl_spec.rb | 2 -- spec/lib/s3_cors_rulesets_spec.rb | 1 - spec/lib/s3_helper_spec.rb | 1 - spec/lib/s3_inventory_multisite_spec.rb | 1 - spec/lib/s3_inventory_spec.rb | 1 - spec/lib/scheduler/defer_spec.rb | 2 -- spec/lib/score_calculator_spec.rb | 1 - spec/lib/scss_checker_spec.rb | 2 -- spec/lib/search_spec copy.rb | 2 -- spec/lib/search_spec.rb | 2 -- spec/lib/second_factor/actions/grant_admin_spec.rb | 2 -- spec/lib/second_factor/auth_manager_spec.rb | 2 -- spec/lib/secure_session_spec.rb | 2 -- spec/lib/seed_data/categories_spec.rb | 1 - spec/lib/seed_data/topics_spec.rb | 1 - spec/lib/shrink_uploaded_image_spec.rb | 2 -- spec/lib/site_icon_manager_spec.rb | 2 -- spec/lib/site_setting_extension_multisite_spec.rb | 2 -- spec/lib/site_setting_extension_spec.rb | 2 -- spec/lib/site_settings/db_provider_spec.rb | 2 -- spec/lib/site_settings/defaults_provider_spec.rb | 2 -- spec/lib/site_settings/local_process_provider_multisite_spec.rb | 2 -- spec/lib/site_settings/local_process_provider_spec.rb | 2 -- spec/lib/site_settings/type_supervisor_spec.rb | 2 -- spec/lib/site_settings/validations_spec.rb | 1 - spec/lib/site_settings/yaml_loader_spec.rb | 1 - spec/lib/slug_spec.rb | 1 - spec/lib/spam_handler_spec.rb | 1 - spec/lib/stylesheet/compiler_spec.rb | 1 - spec/lib/stylesheet/importer_spec.rb | 1 - spec/lib/stylesheet/manager_spec.rb | 1 - spec/lib/suggested_topics_builder_spec.rb | 1 - spec/lib/svg_sprite/svg_sprite_spec.rb | 2 -- spec/lib/system_message_spec.rb | 1 - spec/lib/text_cleaner_spec.rb | 1 - spec/lib/text_sentinel_spec.rb | 1 - spec/lib/theme_flag_modifier_spec.rb | 2 -- spec/lib/theme_javascript_compiler_spec.rb | 2 -- spec/lib/theme_settings_manager_spec.rb | 1 - spec/lib/theme_settings_parser_spec.rb | 1 - spec/lib/theme_store/git_importer_spec.rb | 1 - spec/lib/theme_store/zip_exporter_spec.rb | 1 - spec/lib/theme_store/zip_importer_spec.rb | 1 - spec/lib/timeline_lookup_spec.rb | 2 -- spec/lib/tiny_japanese_segmenter_spec.rb | 2 -- spec/lib/topic_creator_spec.rb | 2 -- spec/lib/topic_publisher_spec.rb | 2 -- spec/lib/topic_query/private_message_lists_spec.rb | 2 -- spec/lib/topic_query_spec.rb | 1 - spec/lib/topic_retriever_spec.rb | 2 -- spec/lib/topic_upload_security_manager_spec.rb | 2 -- spec/lib/topic_view_spec.rb | 1 - spec/lib/topics_bulk_action_spec.rb | 2 -- spec/lib/trashable_spec.rb | 2 -- spec/lib/trust_level_spec.rb | 2 -- spec/lib/twitter_api_spec.rb | 2 -- spec/lib/unread_spec.rb | 1 - spec/lib/upload_creator_spec.rb | 1 - spec/lib/upload_markdown_spec.rb | 2 -- spec/lib/upload_recovery_spec.rb | 2 -- spec/lib/upload_security_spec.rb | 2 -- spec/lib/url_helper_spec.rb | 2 -- spec/lib/user_lookup_spec.rb | 2 -- spec/lib/user_name_suggester_spec.rb | 1 - spec/lib/validators/allowed_ip_address_validator_spec.rb | 2 -- .../category_search_priority_weights_validator_spec.rb | 1 - spec/lib/validators/censored_words_validator_spec.rb | 2 -- spec/lib/validators/css_color_validator_spec.rb | 2 -- spec/lib/validators/email_address_validator_spec.rb | 2 -- spec/lib/validators/email_setting_validator_spec.rb | 2 -- spec/lib/validators/email_validator_spec.rb | 2 -- spec/lib/validators/enable_invite_only_validator_spec.rb | 2 -- .../validators/enable_local_logins_via_email_validator_spec.rb | 2 -- spec/lib/validators/enable_sso_validator_spec.rb | 2 -- spec/lib/validators/external_system_avatars_validator_spec.rb | 2 -- spec/lib/validators/group_setting_validator_spec.rb | 2 -- spec/lib/validators/host_list_setting_validator_spec.rb | 2 -- spec/lib/validators/integer_setting_validator_spec.rb | 2 -- spec/lib/validators/ip_address_format_validator_spec.rb | 2 -- spec/lib/validators/max_emojis_validator_spec.rb | 1 - spec/lib/validators/max_username_length_validator_spec.rb | 2 -- spec/lib/validators/min_username_length_validator_spec.rb | 2 -- spec/lib/validators/password_validator_spec.rb | 2 -- spec/lib/validators/post_validator_spec.rb | 2 -- spec/lib/validators/quality_title_validator_spec.rb | 1 - spec/lib/validators/regex_presence_validator_spec.rb | 2 -- spec/lib/validators/regex_setting_validator_spec.rb | 2 -- spec/lib/validators/reply_by_email_address_validator_spec.rb | 2 -- spec/lib/validators/reply_by_email_enabled_validator_spec.rb | 2 -- spec/lib/validators/search_tokenize_chinese_validator_spec.rb | 2 -- spec/lib/validators/search_tokenize_japanese_validator_spec.rb | 2 -- spec/lib/validators/selectable_avatars_mode_validator_spec.rb | 2 -- spec/lib/validators/sso_overrides_email_validator_spec.rb | 2 -- spec/lib/validators/string_setting_validator_spec.rb | 2 -- spec/lib/validators/timezone_validator_spec.rb | 2 -- spec/lib/validators/topic_title_length_validator_spec.rb | 1 - .../lib/validators/unicode_username_allowlist_validator_spec.rb | 2 -- spec/lib/validators/unicode_username_validator_spec.rb | 2 -- spec/lib/validators/upload_validator_spec.rb | 2 -- spec/lib/validators/url_validator_spec.rb | 1 - spec/lib/validators/user_full_name_validator_spec.rb | 2 -- spec/lib/validators/username_setting_validator_spec.rb | 2 -- spec/lib/version_spec.rb | 1 - spec/lib/webauthn/challenge_generator_spec.rb | 2 -- spec/lib/webauthn/security_key_authentication_service_spec.rb | 1 - spec/lib/webauthn/security_key_registration_service_spec.rb | 1 - spec/lib/wizard/step_updater_spec.rb | 2 -- spec/lib/wizard/wizard_builder_spec.rb | 1 - spec/lib/wizard/wizard_spec.rb | 1 - spec/lib/wizard/wizard_step_spec.rb | 1 - spec/mailers/group_smtp_mailer_spec.rb | 1 - spec/mailers/invite_mailer_spec.rb | 2 -- spec/mailers/rejection_mailer_spec.rb | 2 -- spec/mailers/subscription_mailer_spec.rb | 2 -- spec/mailers/test_mailer_spec.rb | 2 -- spec/mailers/user_notifications_spec.rb | 2 -- spec/mailers/version_mailer_spec.rb | 2 -- spec/models/about_spec.rb | 2 -- spec/models/admin_dashboard_data_spec.rb | 2 -- spec/models/api_key_scope_spec.rb | 2 -- spec/models/api_key_spec.rb | 2 -- spec/models/application_request_spec.rb | 2 -- spec/models/associated_group_spec.rb | 2 -- spec/models/badge_spec.rb | 2 -- spec/models/badge_type_spec.rb | 2 -- spec/models/bookmark_spec.rb | 2 -- spec/models/category_featured_topic_spec.rb | 2 -- spec/models/category_group_spec.rb | 2 -- spec/models/category_list_spec.rb | 1 - spec/models/category_spec.rb | 2 -- spec/models/category_user_spec.rb | 2 -- spec/models/child_theme_spec.rb | 2 -- spec/models/color_scheme_color_spec.rb | 2 -- spec/models/color_scheme_spec.rb | 2 -- spec/models/developer_spec.rb | 2 -- spec/models/digest_email_site_setting_spec.rb | 2 -- spec/models/directory_item_spec.rb | 2 -- spec/models/discourse_connect_spec.rb | 2 -- spec/models/do_not_disturb_timing_spec.rb | 2 -- spec/models/draft_sequence_spec.rb | 2 -- spec/models/draft_spec.rb | 2 -- spec/models/email_change_request_spec.rb | 2 -- spec/models/email_log_spec.rb | 2 -- spec/models/email_token_spec.rb | 2 -- spec/models/embeddable_host_spec.rb | 2 -- spec/models/emoji_spec.rb | 2 -- spec/models/given_daily_like_spec.rb | 2 -- spec/models/global_setting_spec.rb | 1 - spec/models/group_archived_message_spec.rb | 2 -- spec/models/group_associated_group_spec.rb | 2 -- spec/models/group_history_spec.rb | 2 -- spec/models/group_spec.rb | 2 -- spec/models/group_user_spec.rb | 2 -- spec/models/incoming_link_spec.rb | 2 -- spec/models/incoming_links_report_spec.rb | 2 -- spec/models/invite_redeemer_spec.rb | 2 -- spec/models/invite_spec.rb | 2 -- spec/models/javascript_cache_spec.rb | 2 -- spec/models/locale_site_setting_spec.rb | 2 -- spec/models/mailing_list_mode_site_setting_spec.rb | 2 -- spec/models/notification_spec.rb | 2 -- spec/models/optimized_image_spec.rb | 2 -- spec/models/permalink_spec.rb | 2 -- spec/models/plugin_store_spec.rb | 2 -- spec/models/post_action_spec.rb | 2 -- spec/models/post_action_type_spec.rb | 2 -- spec/models/post_analyzer_spec.rb | 2 -- spec/models/post_detail_spec.rb | 2 -- spec/models/post_mover_spec.rb | 2 -- spec/models/post_reply_key_spec.rb | 2 -- spec/models/post_reply_spec.rb | 2 -- spec/models/post_spec.rb | 2 -- spec/models/post_timing_spec.rb | 2 -- spec/models/post_upload_spec.rb | 2 -- spec/models/private_message_topic_tracking_state_spec.rb | 2 -- spec/models/published_page_spec.rb | 2 -- spec/models/quoted_post_spec.rb | 2 -- spec/models/remote_theme_spec.rb | 2 -- spec/models/report_spec.rb | 2 -- spec/models/reviewable_claimed_topic_spec.rb | 2 -- spec/models/reviewable_flagged_post_spec.rb | 2 -- spec/models/reviewable_history_spec.rb | 2 -- spec/models/reviewable_post_spec.rb | 2 -- spec/models/reviewable_queued_post_spec.rb | 2 -- spec/models/reviewable_score_spec.rb | 2 -- spec/models/reviewable_spec.rb | 2 -- spec/models/reviewable_user_spec.rb | 2 -- spec/models/s3_region_site_setting_spec.rb | 2 -- spec/models/screened_email_spec.rb | 2 -- spec/models/screened_ip_address_spec.rb | 2 -- spec/models/screened_url_spec.rb | 2 -- spec/models/search_log_spec.rb | 2 -- spec/models/site_setting_spec.rb | 2 -- spec/models/site_spec.rb | 2 -- spec/models/skipped_email_log_spec.rb | 2 -- spec/models/stylesheet_cache_spec.rb | 2 -- spec/models/tag_group_spec.rb | 2 -- spec/models/tag_spec.rb | 2 -- spec/models/tag_user_spec.rb | 2 -- spec/models/theme_field_spec.rb | 2 -- spec/models/theme_modifier_set_spec.rb | 2 -- spec/models/theme_spec.rb | 2 -- spec/models/top_menu_item_spec.rb | 2 -- spec/models/top_topic_spec.rb | 2 -- spec/models/topic_allowed_user_spec.rb | 2 -- spec/models/topic_converter_spec.rb | 2 -- spec/models/topic_embed_spec.rb | 1 - spec/models/topic_featured_users_spec.rb | 2 -- spec/models/topic_group_spec.rb | 2 -- spec/models/topic_invite_spec.rb | 2 -- spec/models/topic_link_click_spec.rb | 2 -- spec/models/topic_link_spec.rb | 2 -- spec/models/topic_list_spec.rb | 2 -- spec/models/topic_participants_summary_spec.rb | 2 -- spec/models/topic_posters_summary_spec.rb | 2 -- spec/models/topic_spec.rb | 2 -- spec/models/topic_tag_spec.rb | 2 -- spec/models/topic_thumbnail_spec.rb | 2 -- spec/models/topic_timer_spec.rb | 2 -- spec/models/topic_tracking_state_spec.rb | 2 -- spec/models/topic_user_spec.rb | 2 -- spec/models/topic_view_item_spec.rb | 2 -- spec/models/translation_override_spec.rb | 2 -- spec/models/trust_level3_requirements_spec.rb | 2 -- spec/models/trust_level_and_staff_setting_spec.rb | 2 -- spec/models/trust_level_setting_spec.rb | 2 -- spec/models/unsubscribe_key_spec.rb | 2 -- spec/models/upload_spec.rb | 2 -- spec/models/user_action_spec.rb | 2 -- spec/models/user_api_key_spec.rb | 2 -- spec/models/user_archived_message_spec.rb | 2 -- spec/models/user_associated_group_spec.rb | 2 -- spec/models/user_auth_token_spec.rb | 1 - spec/models/user_avatar_spec.rb | 2 -- spec/models/user_badge_spec.rb | 2 -- spec/models/user_bookmark_list_spec.rb | 2 -- spec/models/user_email_spec.rb | 2 -- spec/models/user_export_spec.rb | 2 -- spec/models/user_field_spec.rb | 2 -- spec/models/user_history_spec.rb | 2 -- spec/models/user_notification_schedule_spec.rb | 2 -- spec/models/user_option_spec.rb | 2 -- spec/models/user_profile_spec.rb | 2 -- spec/models/user_profile_view_spec.rb | 2 -- spec/models/user_search_spec.rb | 2 -- spec/models/user_second_factor_spec.rb | 2 -- spec/models/user_spec.rb | 2 -- spec/models/user_stat_spec.rb | 2 -- spec/models/user_summary_spec.rb | 2 -- spec/models/user_visit_spec.rb | 2 -- spec/models/username_validator_spec.rb | 2 -- spec/models/watched_word_spec.rb | 2 -- spec/models/web_crawler_request_spec.rb | 2 -- spec/models/web_hook_event_spec.rb | 2 -- spec/models/web_hook_spec.rb | 2 -- spec/multisite/distributed_cache_spec.rb | 2 -- spec/multisite/jobs_spec.rb | 2 -- spec/multisite/pausable_multisite_spec.rb | 2 -- spec/multisite/pausable_spec.rb | 2 -- spec/multisite/post_spec.rb | 2 -- spec/multisite/request_tracker_spec.rb | 2 -- spec/multisite/s3_store_spec.rb | 1 - spec/multisite/site_settings_spec.rb | 2 -- spec/requests/about_controller_spec.rb | 2 -- spec/requests/admin/admin_controller_spec.rb | 2 -- spec/requests/admin/api_controller_spec.rb | 2 -- spec/requests/admin/backups_controller_spec.rb | 2 -- spec/requests/admin/badges_controller_spec.rb | 2 -- spec/requests/admin/color_schemes_controller_spec.rb | 2 -- spec/requests/admin/dashboard_controller_spec.rb | 2 -- spec/requests/admin/email_controller_spec.rb | 2 -- spec/requests/admin/email_styles_controller_spec.rb | 2 -- spec/requests/admin/email_templates_controller_spec.rb | 2 -- spec/requests/admin/embeddable_hosts_controller_spec.rb | 2 -- spec/requests/admin/embedding_controller_spec.rb | 2 -- spec/requests/admin/emojis_controller_spec.rb | 2 -- spec/requests/admin/groups_controller_spec.rb | 2 -- spec/requests/admin/impersonate_controller_spec.rb | 2 -- spec/requests/admin/permalinks_controller_spec.rb | 2 -- spec/requests/admin/plugins_controller_spec.rb | 2 -- spec/requests/admin/reports_controller_spec.rb | 2 -- spec/requests/admin/robots_txt_controller_spec.rb | 2 -- spec/requests/admin/screened_emails_controller_spec.rb | 2 -- spec/requests/admin/screened_ip_addresses_controller_spec.rb | 2 -- spec/requests/admin/screened_urls_controller_spec.rb | 2 -- spec/requests/admin/search_logs_spec.rb | 2 -- spec/requests/admin/site_settings_controller_spec.rb | 2 -- spec/requests/admin/site_texts_controller_spec.rb | 2 -- spec/requests/admin/staff_action_logs_controller_spec.rb | 2 -- spec/requests/admin/themes_controller_spec.rb | 2 -- spec/requests/admin/user_fields_controller_spec.rb | 2 -- spec/requests/admin/users_controller_spec.rb | 1 - spec/requests/admin/versions_controller_spec.rb | 2 -- spec/requests/admin/watched_words_controller_spec.rb | 2 -- spec/requests/admin/web_hooks_controller_spec.rb | 2 -- spec/requests/application_controller_spec.rb | 2 -- spec/requests/associate_accounts_controller_spec.rb | 2 -- spec/requests/badges_controller_spec.rb | 2 -- spec/requests/bookmarks_controller_spec.rb | 2 -- spec/requests/bootstrap_controller_spec.rb | 2 -- spec/requests/categories_controller_spec.rb | 2 -- spec/requests/clicks_controller_spec.rb | 2 -- spec/requests/composer_messages_controller_spec.rb | 2 -- spec/requests/csp_reports_controller_spec.rb | 2 -- spec/requests/directory_columns_controller_spec.rb | 2 -- spec/requests/directory_items_controller_spec.rb | 2 -- spec/requests/do_not_disturb_controller_spec.rb | 2 -- spec/requests/drafts_controller_spec.rb | 2 -- spec/requests/email_controller_spec.rb | 2 -- spec/requests/embed_controller_spec.rb | 2 -- spec/requests/exceptions_controller_spec.rb | 2 -- spec/requests/export_csv_controller_spec.rb | 2 -- spec/requests/extra_locales_controller_spec.rb | 2 -- spec/requests/finish_installation_controller_spec.rb | 2 -- spec/requests/forums_controller_spec.rb | 2 -- spec/requests/groups_controller_spec.rb | 2 -- spec/requests/hashtags_controller_spec.rb | 2 -- spec/requests/inline_onebox_controller_spec.rb | 2 -- spec/requests/invites_controller_spec.rb | 2 -- spec/requests/list_controller_spec.rb | 2 -- spec/requests/metadata_controller_spec.rb | 2 -- spec/requests/notifications_controller_spec.rb | 2 -- spec/requests/offline_controller_spec.rb | 2 -- spec/requests/omniauth_callbacks_controller_spec.rb | 1 - spec/requests/onebox_controller_spec.rb | 2 -- spec/requests/permalinks_controller_spec.rb | 2 -- spec/requests/post_action_users_controller_spec.rb | 2 -- spec/requests/post_actions_controller_spec.rb | 2 -- spec/requests/post_readers_controller_spec.rb | 2 -- spec/requests/posts_controller_spec.rb | 2 -- spec/requests/presence_controller_spec.rb | 2 -- spec/requests/published_pages_controller_spec.rb | 2 -- spec/requests/push_notification_controller_spec.rb | 2 -- spec/requests/qunit_controller_spec.rb | 2 -- spec/requests/reviewable_claimed_topics_controller_spec.rb | 2 -- spec/requests/reviewables_controller_spec.rb | 2 -- spec/requests/robots_txt_controller_spec.rb | 2 -- spec/requests/safe_mode_controller_spec.rb | 2 -- spec/requests/search_controller_spec.rb | 2 -- spec/requests/session_controller_spec.rb | 1 - spec/requests/similar_topics_controller_spec.rb | 2 -- spec/requests/site_controller_spec.rb | 2 -- spec/requests/static_controller_spec.rb | 2 -- spec/requests/steps_controller_spec.rb | 2 -- spec/requests/stylesheets_controller_spec.rb | 2 -- spec/requests/svg_sprite_controller_spec.rb | 2 -- spec/requests/tag_groups_controller_spec.rb | 2 -- spec/requests/tags_controller_spec.rb | 2 -- spec/requests/theme_javascripts_controller_spec.rb | 2 -- spec/requests/topics_controller_spec.rb | 2 -- spec/requests/uploads_controller_multisite_spec.rb | 2 -- spec/requests/uploads_controller_spec.rb | 2 -- spec/requests/user_actions_controller_spec.rb | 2 -- spec/requests/user_api_keys_controller_spec.rb | 2 -- spec/requests/user_avatars_controller_spec.rb | 2 -- spec/requests/user_badges_controller_spec.rb | 2 -- spec/requests/users_controller_spec.rb | 1 - spec/requests/users_email_controller_spec.rb | 1 - spec/requests/webhooks_controller_spec.rb | 2 -- spec/requests/wizard_controller_spec.rb | 2 -- spec/script/import_scripts/base_spec.rb | 1 - .../phpbb3/support/bbcode/xml_to_markdown_spec.rb | 1 - spec/script/import_scripts/vanilla_body_parser_spec.rb | 1 - spec/serializers/about_serializer_spec.rb | 2 -- spec/serializers/admin_plugin_serializer_spec.rb | 2 -- spec/serializers/admin_user_list_serializer_spec.rb | 2 -- spec/serializers/basic_group_serializer_spec.rb | 2 -- spec/serializers/basic_group_user_serializer_spec.rb | 2 -- spec/serializers/basic_post_serializer_spec.rb | 2 -- spec/serializers/basic_user_serializer_spec.rb | 2 -- spec/serializers/category_detailed_serializer_spec.rb | 2 -- spec/serializers/category_serializer_spec.rb | 2 -- spec/serializers/category_upload_serializer_spec.rb | 2 -- spec/serializers/current_user_serializer_spec.rb | 2 -- spec/serializers/directory_item_serializer_spec.rb | 2 -- spec/serializers/emoji_serializer_spec.rb | 2 -- spec/serializers/group_show_serializer_spec.rb | 2 -- spec/serializers/listable_topic_serializer_spec.rb | 2 -- spec/serializers/new_post_result_serializer_spec.rb | 2 -- spec/serializers/notification_serializer_spec.rb | 2 -- spec/serializers/pending_post_serializer_spec.rb | 2 -- spec/serializers/post_revision_serializer_spec.rb | 2 -- spec/serializers/post_serializer_spec.rb | 2 -- spec/serializers/reviewable_flagged_post_serializer_spec.rb | 2 -- spec/serializers/reviewable_queued_post_serializer_spec.rb | 2 -- spec/serializers/reviewable_score_serializer_spec.rb | 2 -- spec/serializers/reviewable_serializer_spec.rb | 2 -- spec/serializers/reviewable_user_serializer_spec.rb | 2 -- spec/serializers/single_sign_on_record_serializer_spec.rb | 2 -- spec/serializers/site_serializer_spec.rb | 2 -- spec/serializers/suggested_topic_serializer_spec.rb | 2 -- spec/serializers/tag_group_serializer_spec.rb | 2 -- spec/serializers/theme_serializer_spec.rb | 2 -- spec/serializers/topic_link_serializer_spec.rb | 2 -- spec/serializers/topic_list_item_serializer_spec.rb | 2 -- spec/serializers/topic_list_serializer_spec.rb | 2 -- spec/serializers/topic_view_details_serializer_spec.rb | 2 -- spec/serializers/topic_view_posts_serializer_spec.rb | 2 -- spec/serializers/topic_view_serializer_spec.rb | 2 -- spec/serializers/upload_serializer_spec.rb | 2 -- spec/serializers/user_auth_token_serializer_spec.rb | 2 -- spec/serializers/user_bookmark_serializer_spec.rb | 2 -- spec/serializers/user_card_serializer_spec.rb | 2 -- spec/serializers/user_serializer_spec.rb | 2 -- spec/serializers/user_summary_serializer_spec.rb | 2 -- spec/serializers/web_hook_post_serializer_spec.rb | 2 -- spec/serializers/web_hook_topic_view_serializer_spec.rb | 2 -- spec/serializers/web_hook_user_serializer_spec.rb | 2 -- spec/serializers/wizard_serializer_spec.rb | 2 -- spec/services/anonymous_shadow_creator_spec.rb | 2 -- spec/services/auto_silence_spec.rb | 2 -- spec/services/badge_granter_spec.rb | 2 -- spec/services/color_scheme_revisor_spec.rb | 2 -- spec/services/destroy_task_spec.rb | 2 -- spec/services/email_settings_exception_handler_spec.rb | 2 -- spec/services/email_settings_validator_spec.rb | 2 -- spec/services/email_style_updater_spec.rb | 2 -- spec/services/external_upload_manager_spec.rb | 2 -- spec/services/flag_sockpuppets_spec.rb | 2 -- spec/services/group_action_logger_spec.rb | 2 -- spec/services/group_mentions_updater_spec.rb | 2 -- spec/services/group_message_spec.rb | 2 -- spec/services/heat_settings_updater_spec.rb | 2 -- spec/services/inline_uploads_multisite_spec.rb | 2 -- spec/services/inline_uploads_spec.rb | 2 -- spec/services/notification_emailer_spec.rb | 2 -- spec/services/notifications/consolidate_notifications_spec.rb | 2 -- spec/services/notifications/consolidation_planner_spec.rb | 2 -- spec/services/post_action_notifier_spec.rb | 2 -- spec/services/post_alerter_spec.rb | 2 -- spec/services/post_owner_changer_spec.rb | 2 -- spec/services/push_notification_pusher_spec.rb | 2 -- spec/services/random_topic_selector_spec.rb | 2 -- spec/services/search_indexer_spec.rb | 2 -- spec/services/site_settings_spec.rb | 2 -- spec/services/staff_action_logger_spec.rb | 2 -- spec/services/themes_spec.rb | 2 -- spec/services/topic_status_updater_spec.rb | 2 -- spec/services/topic_timestamp_changer_spec.rb | 2 -- spec/services/trust_level_granter_spec.rb | 2 -- spec/services/user_activator_spec.rb | 2 -- spec/services/user_anonymizer_spec.rb | 2 -- spec/services/user_authenticator_spec.rb | 2 -- spec/services/user_destroyer_spec.rb | 2 -- spec/services/user_merger_spec.rb | 2 -- spec/services/user_notification_schedule_processor_spec.rb | 2 -- spec/services/user_silencer_spec.rb | 2 -- spec/services/user_stat_count_updater_spec.rb | 2 -- spec/services/user_updater_spec.rb | 2 -- spec/services/username_changer_spec.rb | 2 -- spec/services/username_checker_service_spec.rb | 2 -- spec/services/wildcard_domain_checker_spec.rb | 2 -- spec/services/wildcard_url_checker_spec.rb | 2 -- spec/services/word_watcher_spec.rb | 2 -- spec/swagger_helper.rb | 1 - spec/tasks/incoming_emails_spec.rb | 2 -- spec/tasks/posts_spec.rb | 1 - spec/tasks/redis_spec.rb | 2 -- spec/tasks/uploads_spec.rb | 2 -- spec/views/omniauth_callbacks/failure.html.erb_spec.rb | 2 -- 815 files changed, 1 insertion(+), 1487 deletions(-) diff --git a/.rspec b/.rspec index 53607ea52b7..4d520043cf8 100644 --- a/.rspec +++ b/.rspec @@ -1 +1,2 @@ --colour +--require 'rails_helper' diff --git a/plugins/discourse-local-dates/spec/integration/local_dates_spec.rb b/plugins/discourse-local-dates/spec/integration/local_dates_spec.rb index d8a10857f80..651a12ea89d 100644 --- a/plugins/discourse-local-dates/spec/integration/local_dates_spec.rb +++ b/plugins/discourse-local-dates/spec/integration/local_dates_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - RSpec.describe "Local Dates" do before do freeze_time DateTime.parse('2018-11-10 12:00') diff --git a/plugins/discourse-local-dates/spec/lib/pretty_text_spec.rb b/plugins/discourse-local-dates/spec/lib/pretty_text_spec.rb index d90d26da356..c365ffaf5e9 100644 --- a/plugins/discourse-local-dates/spec/lib/pretty_text_spec.rb +++ b/plugins/discourse-local-dates/spec/lib/pretty_text_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - def generate_html(text, opts = {}) output = "

0') diff --git a/spec/lib/archetype_spec.rb b/spec/lib/archetype_spec.rb index 6414980e7f1..d20f1105f26 100644 --- a/spec/lib/archetype_spec.rb +++ b/spec/lib/archetype_spec.rb @@ -1,7 +1,6 @@ # encoding: utf-8 # frozen_string_literal: true -require 'rails_helper' require 'archetype' describe Archetype do diff --git a/spec/lib/auth/default_current_user_provider_spec.rb b/spec/lib/auth/default_current_user_provider_spec.rb index d684a0f5409..7fd7d4a3ca9 100644 --- a/spec/lib/auth/default_current_user_provider_spec.rb +++ b/spec/lib/auth/default_current_user_provider_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe Auth::DefaultCurrentUserProvider do # careful using fab! here is can lead to an erratic test # we want a distinct user object per test so last_seen_at is diff --git a/spec/lib/auth/discord_authenticator_spec.rb b/spec/lib/auth/discord_authenticator_spec.rb index 3a9ad73a1e9..13ea3a44e0d 100644 --- a/spec/lib/auth/discord_authenticator_spec.rb +++ b/spec/lib/auth/discord_authenticator_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe Auth::DiscordAuthenticator do let(:hash) { OmniAuth::AuthHash.new( diff --git a/spec/lib/auth/facebook_authenticator_spec.rb b/spec/lib/auth/facebook_authenticator_spec.rb index eae3e2bf21b..93a8778f39c 100644 --- a/spec/lib/auth/facebook_authenticator_spec.rb +++ b/spec/lib/auth/facebook_authenticator_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe Auth::FacebookAuthenticator do let(:hash) { { diff --git a/spec/lib/auth/github_authenticator_spec.rb b/spec/lib/auth/github_authenticator_spec.rb index ee6917bfe3b..33a9a7ac543 100644 --- a/spec/lib/auth/github_authenticator_spec.rb +++ b/spec/lib/auth/github_authenticator_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - def auth_token_for(user) { provider: "github", diff --git a/spec/lib/auth/google_oauth2_authenticator_spec.rb b/spec/lib/auth/google_oauth2_authenticator_spec.rb index b82649070d8..76ec7e9d76b 100644 --- a/spec/lib/auth/google_oauth2_authenticator_spec.rb +++ b/spec/lib/auth/google_oauth2_authenticator_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe Auth::GoogleOAuth2Authenticator do it 'does not look up user unless email is verified' do # note, emails that come back from google via omniauth are always valid diff --git a/spec/lib/auth/managed_authenticator_spec.rb b/spec/lib/auth/managed_authenticator_spec.rb index 1c04b910f21..23c196d6bf6 100644 --- a/spec/lib/auth/managed_authenticator_spec.rb +++ b/spec/lib/auth/managed_authenticator_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe Auth::ManagedAuthenticator do let(:authenticator) { Class.new(described_class) do diff --git a/spec/lib/auth/omniauth_strategies/discourse_google_oauth2_spec.rb b/spec/lib/auth/omniauth_strategies/discourse_google_oauth2_spec.rb index e5eda8ff6b0..d2ef65ceb4a 100644 --- a/spec/lib/auth/omniauth_strategies/discourse_google_oauth2_spec.rb +++ b/spec/lib/auth/omniauth_strategies/discourse_google_oauth2_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe Auth::OmniAuthStrategies::DiscourseGoogleOauth2 do let(:response_hash) do { diff --git a/spec/lib/auth/result_spec.rb b/spec/lib/auth/result_spec.rb index 3c39cf7a944..6dd3d47a823 100644 --- a/spec/lib/auth/result_spec.rb +++ b/spec/lib/auth/result_spec.rb @@ -1,6 +1,4 @@ # frozen_string_literal: true -require 'rails_helper' - describe Auth::Result do fab!(:initial_email) { "initialemail@example.org" } fab!(:initial_username) { "initialusername" } diff --git a/spec/lib/auth/twitter_authenticator_spec.rb b/spec/lib/auth/twitter_authenticator_spec.rb index 0e99fbdc71c..3cf3fe861d4 100644 --- a/spec/lib/auth/twitter_authenticator_spec.rb +++ b/spec/lib/auth/twitter_authenticator_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe Auth::TwitterAuthenticator do it "takes over account if email is supplied" do diff --git a/spec/lib/backup_restore/backup_file_handler_multisite_spec.rb b/spec/lib/backup_restore/backup_file_handler_multisite_spec.rb index 6111be6870e..f5c6ac4717a 100644 --- a/spec/lib/backup_restore/backup_file_handler_multisite_spec.rb +++ b/spec/lib/backup_restore/backup_file_handler_multisite_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require "rails_helper" require_relative "shared_context_for_backup_restore" describe BackupRestore::BackupFileHandler, type: :multisite do diff --git a/spec/lib/backup_restore/backup_file_handler_spec.rb b/spec/lib/backup_restore/backup_file_handler_spec.rb index 3acec9fe605..1e0eaeeb58c 100644 --- a/spec/lib/backup_restore/backup_file_handler_spec.rb +++ b/spec/lib/backup_restore/backup_file_handler_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require_relative 'shared_context_for_backup_restore' describe BackupRestore::BackupFileHandler do diff --git a/spec/lib/backup_restore/backuper_spec.rb b/spec/lib/backup_restore/backuper_spec.rb index 149b2e423f0..6c9e64829fb 100644 --- a/spec/lib/backup_restore/backuper_spec.rb +++ b/spec/lib/backup_restore/backuper_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe BackupRestore::Backuper do it 'returns a non-empty parameterized title when site title contains unicode' do SiteSetting.title = 'Æ”' diff --git a/spec/lib/backup_restore/database_restorer_multisite_spec.rb b/spec/lib/backup_restore/database_restorer_multisite_spec.rb index 5deeb594e88..dea3029418f 100644 --- a/spec/lib/backup_restore/database_restorer_multisite_spec.rb +++ b/spec/lib/backup_restore/database_restorer_multisite_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require "rails_helper" require_relative "shared_context_for_backup_restore" describe BackupRestore::DatabaseRestorer, type: :multisite do diff --git a/spec/lib/backup_restore/database_restorer_spec.rb b/spec/lib/backup_restore/database_restorer_spec.rb index e1b4c8726ff..1655ec68eeb 100644 --- a/spec/lib/backup_restore/database_restorer_spec.rb +++ b/spec/lib/backup_restore/database_restorer_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require_relative 'shared_context_for_backup_restore' describe BackupRestore::DatabaseRestorer do diff --git a/spec/lib/backup_restore/local_backup_store_spec.rb b/spec/lib/backup_restore/local_backup_store_spec.rb index 3cf1ea42518..3d829ceab4e 100644 --- a/spec/lib/backup_restore/local_backup_store_spec.rb +++ b/spec/lib/backup_restore/local_backup_store_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'backup_restore/local_backup_store' require_relative 'shared_examples_for_backup_store' diff --git a/spec/lib/backup_restore/meta_data_handler_spec.rb b/spec/lib/backup_restore/meta_data_handler_spec.rb index 7d6ddc8ad43..fb3229a2ab9 100644 --- a/spec/lib/backup_restore/meta_data_handler_spec.rb +++ b/spec/lib/backup_restore/meta_data_handler_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require_relative 'shared_context_for_backup_restore' describe BackupRestore::MetaDataHandler do diff --git a/spec/lib/backup_restore/s3_backup_store_spec.rb b/spec/lib/backup_restore/s3_backup_store_spec.rb index c4120a3964a..b7e39a9f4d3 100644 --- a/spec/lib/backup_restore/s3_backup_store_spec.rb +++ b/spec/lib/backup_restore/s3_backup_store_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 's3_helper' require 'backup_restore/s3_backup_store' require_relative 'shared_examples_for_backup_store' diff --git a/spec/lib/backup_restore/system_interface_multisite_spec.rb b/spec/lib/backup_restore/system_interface_multisite_spec.rb index 93d1c7dc3bb..eeea97336ff 100644 --- a/spec/lib/backup_restore/system_interface_multisite_spec.rb +++ b/spec/lib/backup_restore/system_interface_multisite_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require "rails_helper" require_relative "shared_context_for_backup_restore" describe BackupRestore::SystemInterface, type: :multisite do diff --git a/spec/lib/backup_restore/system_interface_spec.rb b/spec/lib/backup_restore/system_interface_spec.rb index 8ebfd4cabb8..fe0740c3b4c 100644 --- a/spec/lib/backup_restore/system_interface_spec.rb +++ b/spec/lib/backup_restore/system_interface_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require_relative 'shared_context_for_backup_restore' describe BackupRestore::SystemInterface do diff --git a/spec/lib/backup_restore/uploads_restorer_spec.rb b/spec/lib/backup_restore/uploads_restorer_spec.rb index cd3079e1fa8..92cdf1ef669 100644 --- a/spec/lib/backup_restore/uploads_restorer_spec.rb +++ b/spec/lib/backup_restore/uploads_restorer_spec.rb @@ -1,7 +1,6 @@ # frozen_string_literal: true # rubocop:disable Discourse/OnlyTopLevelMultisiteSpecs -require 'rails_helper' require_relative 'shared_context_for_backup_restore' describe BackupRestore::UploadsRestorer do diff --git a/spec/lib/bookmark_manager_spec.rb b/spec/lib/bookmark_manager_spec.rb index d2d910cb676..a6de9fb2ec8 100644 --- a/spec/lib/bookmark_manager_spec.rb +++ b/spec/lib/bookmark_manager_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - RSpec.describe BookmarkManager do let(:user) { Fabricate(:user) } diff --git a/spec/lib/bookmark_query_spec.rb b/spec/lib/bookmark_query_spec.rb index b1a94462e66..8bfe3cf97c2 100644 --- a/spec/lib/bookmark_query_spec.rb +++ b/spec/lib/bookmark_query_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - RSpec.describe BookmarkQuery do before do SearchIndexer.enable diff --git a/spec/lib/bookmark_reminder_notification_handler_spec.rb b/spec/lib/bookmark_reminder_notification_handler_spec.rb index 136776805e2..9e7dc0e06ca 100644 --- a/spec/lib/bookmark_reminder_notification_handler_spec.rb +++ b/spec/lib/bookmark_reminder_notification_handler_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - RSpec.describe BookmarkReminderNotificationHandler do subject { described_class } diff --git a/spec/lib/browser_detection_spec.rb b/spec/lib/browser_detection_spec.rb index b6faa54f113..e0e5f695210 100644 --- a/spec/lib/browser_detection_spec.rb +++ b/spec/lib/browser_detection_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'browser_detection' describe BrowserDetection do diff --git a/spec/lib/cache_spec.rb b/spec/lib/cache_spec.rb index 32567113d00..2a8d77a5ed4 100644 --- a/spec/lib/cache_spec.rb +++ b/spec/lib/cache_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'cache' describe Cache do diff --git a/spec/lib/category_badge_spec.rb b/spec/lib/category_badge_spec.rb index 76eb8c23d65..46d45c92915 100644 --- a/spec/lib/category_badge_spec.rb +++ b/spec/lib/category_badge_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'category_badge' describe CategoryBadge do diff --git a/spec/lib/common_passwords/common_passwords_spec.rb b/spec/lib/common_passwords/common_passwords_spec.rb index 4533de82008..cd0f9ab7b19 100644 --- a/spec/lib/common_passwords/common_passwords_spec.rb +++ b/spec/lib/common_passwords/common_passwords_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "rails_helper" - describe CommonPasswords do it "the passwords file should exist" do expect(File.exist?(described_class::PASSWORD_FILE)).to eq(true) diff --git a/spec/lib/composer_messages_finder_spec.rb b/spec/lib/composer_messages_finder_spec.rb index 15bb3e892fe..6830d6cc944 100644 --- a/spec/lib/composer_messages_finder_spec.rb +++ b/spec/lib/composer_messages_finder_spec.rb @@ -1,7 +1,6 @@ # encoding: utf-8 # frozen_string_literal: true -require 'rails_helper' require 'composer_messages_finder' describe ComposerMessagesFinder do diff --git a/spec/lib/compression/engine_spec.rb b/spec/lib/compression/engine_spec.rb index 27a161934ae..a025eaf0431 100644 --- a/spec/lib/compression/engine_spec.rb +++ b/spec/lib/compression/engine_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe Compression::Engine do let(:available_size) { SiteSetting.decompressed_theme_max_file_size_mb } diff --git a/spec/lib/concern/cached_counting_spec.rb b/spec/lib/concern/cached_counting_spec.rb index a71694f3a6b..190fe105b09 100644 --- a/spec/lib/concern/cached_counting_spec.rb +++ b/spec/lib/concern/cached_counting_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - class TestCachedCounting def self.clear! @data = nil diff --git a/spec/lib/concern/category_hashtag_spec.rb b/spec/lib/concern/category_hashtag_spec.rb index c89dbb575b0..957c3c92f05 100644 --- a/spec/lib/concern/category_hashtag_spec.rb +++ b/spec/lib/concern/category_hashtag_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe CategoryHashtag do describe '#query_from_hashtag_slug' do fab!(:parent_category) { Fabricate(:category) } diff --git a/spec/lib/concern/has_custom_fields_spec.rb b/spec/lib/concern/has_custom_fields_spec.rb index c187bdba376..54154a3030a 100644 --- a/spec/lib/concern/has_custom_fields_spec.rb +++ b/spec/lib/concern/has_custom_fields_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "rails_helper" - describe HasCustomFields do context "custom_fields" do before do diff --git a/spec/lib/concern/has_search_data_spec.rb b/spec/lib/concern/has_search_data_spec.rb index e064ec33539..72795c3f6fb 100644 --- a/spec/lib/concern/has_search_data_spec.rb +++ b/spec/lib/concern/has_search_data_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "rails_helper" - describe HasSearchData do context "belongs to its model" do before do diff --git a/spec/lib/concern/positionable_spec.rb b/spec/lib/concern/positionable_spec.rb index dc7baa6c3bd..76ca109ffa3 100644 --- a/spec/lib/concern/positionable_spec.rb +++ b/spec/lib/concern/positionable_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "rails_helper" - describe Positionable do def positions diff --git a/spec/lib/concern/searchable_spec.rb b/spec/lib/concern/searchable_spec.rb index a4548621eae..830ea311e41 100644 --- a/spec/lib/concern/searchable_spec.rb +++ b/spec/lib/concern/searchable_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "rails_helper" - describe Searchable do context "has search data" do before do diff --git a/spec/lib/concern/second_factor_manager_spec.rb b/spec/lib/concern/second_factor_manager_spec.rb index 1dd7bb47286..5d366424edc 100644 --- a/spec/lib/concern/second_factor_manager_spec.rb +++ b/spec/lib/concern/second_factor_manager_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - RSpec.describe SecondFactorManager do fab!(:user) { Fabricate(:user) } fab!(:user_second_factor_totp) { Fabricate(:user_second_factor_totp, user: user) } diff --git a/spec/lib/content_buffer_spec.rb b/spec/lib/content_buffer_spec.rb index dc5cee7f188..a6044210389 100644 --- a/spec/lib/content_buffer_spec.rb +++ b/spec/lib/content_buffer_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'content_buffer' describe ContentBuffer do diff --git a/spec/lib/content_security_policy/builder_spec.rb b/spec/lib/content_security_policy/builder_spec.rb index 68d51facb91..59e4bb505a9 100644 --- a/spec/lib/content_security_policy/builder_spec.rb +++ b/spec/lib/content_security_policy/builder_spec.rb @@ -1,6 +1,4 @@ # frozen_string_literal: true -require 'rails_helper' - describe ContentSecurityPolicy::Builder do let(:builder) { described_class.new(base_url: Discourse.base_url) } diff --git a/spec/lib/content_security_policy_spec.rb b/spec/lib/content_security_policy_spec.rb index e662f2c0fa8..bba9d45dc3e 100644 --- a/spec/lib/content_security_policy_spec.rb +++ b/spec/lib/content_security_policy_spec.rb @@ -1,6 +1,4 @@ # frozen_string_literal: true -require 'rails_helper' - describe ContentSecurityPolicy do after do DiscoursePluginRegistry.reset! diff --git a/spec/lib/cooked_post_processor_spec.rb b/spec/lib/cooked_post_processor_spec.rb index 9de2d5b6287..72e96274e35 100644 --- a/spec/lib/cooked_post_processor_spec.rb +++ b/spec/lib/cooked_post_processor_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require "rails_helper" require "cooked_post_processor" require "file_store/s3_store" diff --git a/spec/lib/crawler_detection_spec.rb b/spec/lib/crawler_detection_spec.rb index 58d7926b138..98a31fa8a53 100644 --- a/spec/lib/crawler_detection_spec.rb +++ b/spec/lib/crawler_detection_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe CrawlerDetection do def crawler!(user_agent, via = nil) diff --git a/spec/lib/current_user_spec.rb b/spec/lib/current_user_spec.rb index e8ec24118c0..41beb1f0d61 100644 --- a/spec/lib/current_user_spec.rb +++ b/spec/lib/current_user_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe CurrentUser do it "allows us to lookup a user from our environment" do user = Fabricate(:user, active: true) diff --git a/spec/lib/db_helper_spec.rb b/spec/lib/db_helper_spec.rb index c2074a0f80b..03d16081afc 100644 --- a/spec/lib/db_helper_spec.rb +++ b/spec/lib/db_helper_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - RSpec.describe DbHelper do describe '.remap' do it 'should remap columns properly' do diff --git a/spec/lib/directory_helper_spec.rb b/spec/lib/directory_helper_spec.rb index 0b2d687fd5b..cbbc79ec42d 100644 --- a/spec/lib/directory_helper_spec.rb +++ b/spec/lib/directory_helper_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe DirectoryHelper do class DummyClass include DirectoryHelper diff --git a/spec/lib/discourse_diff_spec.rb b/spec/lib/discourse_diff_spec.rb index 7f7d61ed9dc..27596393aae 100644 --- a/spec/lib/discourse_diff_spec.rb +++ b/spec/lib/discourse_diff_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'discourse_diff' describe DiscourseDiff do diff --git a/spec/lib/discourse_event_spec.rb b/spec/lib/discourse_event_spec.rb index fe4ad080db8..fbc916a608c 100644 --- a/spec/lib/discourse_event_spec.rb +++ b/spec/lib/discourse_event_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe DiscourseEvent do describe "#events" do diff --git a/spec/lib/discourse_hub_spec.rb b/spec/lib/discourse_hub_spec.rb index eafb579a8da..2af523777f5 100644 --- a/spec/lib/discourse_hub_spec.rb +++ b/spec/lib/discourse_hub_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe DiscourseHub do describe '.discourse_version_check' do it 'should return just return the json that the hub returns' do diff --git a/spec/lib/discourse_js_processor_spec.rb b/spec/lib/discourse_js_processor_spec.rb index 47cd59601fd..dd04584a3bc 100644 --- a/spec/lib/discourse_js_processor_spec.rb +++ b/spec/lib/discourse_js_processor_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'discourse_js_processor' describe DiscourseJsProcessor do diff --git a/spec/lib/discourse_plugin_registry_spec.rb b/spec/lib/discourse_plugin_registry_spec.rb index 0eb7547c83e..f876d5272a4 100644 --- a/spec/lib/discourse_plugin_registry_spec.rb +++ b/spec/lib/discourse_plugin_registry_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'discourse_plugin_registry' describe DiscoursePluginRegistry do diff --git a/spec/lib/discourse_redis_spec.rb b/spec/lib/discourse_redis_spec.rb index bc2e30fd959..0512ba144a0 100644 --- a/spec/lib/discourse_redis_spec.rb +++ b/spec/lib/discourse_redis_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe DiscourseRedis do it "ignore_readonly returns nil from a pure exception" do result = DiscourseRedis.ignore_readonly { raise Redis::CommandError.new("READONLY") } diff --git a/spec/lib/discourse_spec.rb b/spec/lib/discourse_spec.rb index 2f47dd0bb5e..bdd33cf7df2 100644 --- a/spec/lib/discourse_spec.rb +++ b/spec/lib/discourse_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'discourse' describe Discourse do diff --git a/spec/lib/discourse_tagging_spec.rb b/spec/lib/discourse_tagging_spec.rb index 5ef7c3e7eec..8c5a3ebc008 100644 --- a/spec/lib/discourse_tagging_spec.rb +++ b/spec/lib/discourse_tagging_spec.rb @@ -1,7 +1,6 @@ # encoding: UTF-8 # frozen_string_literal: true -require 'rails_helper' require 'discourse_tagging' # More tests are found in the category_tag_spec integration specs diff --git a/spec/lib/discourse_updates_spec.rb b/spec/lib/discourse_updates_spec.rb index dbe653f0859..59fb8b51bbb 100644 --- a/spec/lib/discourse_updates_spec.rb +++ b/spec/lib/discourse_updates_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe DiscourseUpdates do def stub_data(latest, missing, critical, updated_at) DiscourseUpdates.latest_version = latest diff --git a/spec/lib/distributed_cache_spec.rb b/spec/lib/distributed_cache_spec.rb index 91f0022a29a..540dee32ceb 100644 --- a/spec/lib/distributed_cache_spec.rb +++ b/spec/lib/distributed_cache_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe "DistributedCache extensions" do let(:cache) { DistributedCache.new('mytest') } diff --git a/spec/lib/distributed_memoizer_spec.rb b/spec/lib/distributed_memoizer_spec.rb index 0fb9aedef67..e875422f65e 100644 --- a/spec/lib/distributed_memoizer_spec.rb +++ b/spec/lib/distributed_memoizer_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe DistributedMemoizer do before do diff --git a/spec/lib/distributed_mutex_spec.rb b/spec/lib/distributed_mutex_spec.rb index 23bfd908127..68a31595722 100644 --- a/spec/lib/distributed_mutex_spec.rb +++ b/spec/lib/distributed_mutex_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe DistributedMutex do let(:key) { "test_mutex_key" } diff --git a/spec/lib/email/authentication_results_spec.rb b/spec/lib/email/authentication_results_spec.rb index 2b4c2b3b844..4a7b257a28d 100644 --- a/spec/lib/email/authentication_results_spec.rb +++ b/spec/lib/email/authentication_results_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require "rails_helper" require "email/authentication_results" describe Email::AuthenticationResults do diff --git a/spec/lib/email/cleaner_spec.rb b/spec/lib/email/cleaner_spec.rb index 16de564cd57..ad9e1a71d28 100644 --- a/spec/lib/email/cleaner_spec.rb +++ b/spec/lib/email/cleaner_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require "rails_helper" require "email/receiver" describe Email::Cleaner do diff --git a/spec/lib/email/email_spec.rb b/spec/lib/email/email_spec.rb index 382c321fe15..084337a2a3f 100644 --- a/spec/lib/email/email_spec.rb +++ b/spec/lib/email/email_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'email' describe Email do diff --git a/spec/lib/email/message_builder_spec.rb b/spec/lib/email/message_builder_spec.rb index 75fe28347fa..27a16d3f88e 100644 --- a/spec/lib/email/message_builder_spec.rb +++ b/spec/lib/email/message_builder_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'email/message_builder' describe Email::MessageBuilder do diff --git a/spec/lib/email/processor_spec.rb b/spec/lib/email/processor_spec.rb index 85d41482822..b8143f69d45 100644 --- a/spec/lib/email/processor_spec.rb +++ b/spec/lib/email/processor_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require "rails_helper" require "email/processor" describe Email::Processor do diff --git a/spec/lib/email/receiver_spec.rb b/spec/lib/email/receiver_spec.rb index c152e173254..1123864fc9b 100644 --- a/spec/lib/email/receiver_spec.rb +++ b/spec/lib/email/receiver_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require "rails_helper" require "email/receiver" describe Email::Receiver do diff --git a/spec/lib/email/renderer_spec.rb b/spec/lib/email/renderer_spec.rb index 3cd6df6124c..78df067afd0 100644 --- a/spec/lib/email/renderer_spec.rb +++ b/spec/lib/email/renderer_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'email/renderer' describe Email::Renderer do diff --git a/spec/lib/email/sender_spec.rb b/spec/lib/email/sender_spec.rb index cfad24c9295..255753263ef 100644 --- a/spec/lib/email/sender_spec.rb +++ b/spec/lib/email/sender_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'email/sender' describe Email::Sender do diff --git a/spec/lib/email/styles_spec.rb b/spec/lib/email/styles_spec.rb index be5b634d54e..0b82af62d8b 100644 --- a/spec/lib/email/styles_spec.rb +++ b/spec/lib/email/styles_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'email' describe Email::Styles do diff --git a/spec/lib/email_cook_spec.rb b/spec/lib/email_cook_spec.rb index f120233ce5c..128a23502bd 100644 --- a/spec/lib/email_cook_spec.rb +++ b/spec/lib/email_cook_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'email_cook' require 'pretty_text' diff --git a/spec/lib/email_updater_spec.rb b/spec/lib/email_updater_spec.rb index e3294c9c279..a407383802b 100644 --- a/spec/lib/email_updater_spec.rb +++ b/spec/lib/email_updater_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe EmailUpdater do let(:old_email) { 'old.email@example.com' } let(:new_email) { 'new.email@example.com' } diff --git a/spec/lib/encodings_spec.rb b/spec/lib/encodings_spec.rb index bdbde95f3d4..5853e33a0c9 100644 --- a/spec/lib/encodings_spec.rb +++ b/spec/lib/encodings_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe Encodings do def to_utf8(filename) string = File.read("#{Rails.root}/spec/fixtures/encodings/#{filename}").chomp diff --git a/spec/lib/enum_spec.rb b/spec/lib/enum_spec.rb index 7dd92ccd5b0..c99450daea4 100644 --- a/spec/lib/enum_spec.rb +++ b/spec/lib/enum_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'email' describe Enum do diff --git a/spec/lib/excerpt_parser_spec.rb b/spec/lib/excerpt_parser_spec.rb index 61eda9941a2..d1b032c7f55 100644 --- a/spec/lib/excerpt_parser_spec.rb +++ b/spec/lib/excerpt_parser_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require "rails_helper" require "excerpt_parser" describe ExcerptParser do diff --git a/spec/lib/feed_element_installer_spec.rb b/spec/lib/feed_element_installer_spec.rb index 92c12b40c13..4ca30dbeb85 100644 --- a/spec/lib/feed_element_installer_spec.rb +++ b/spec/lib/feed_element_installer_spec.rb @@ -1,8 +1,6 @@ # frozen_string_literal: true require 'feed_element_installer' -require 'rails_helper' - describe FeedElementInstaller do describe '#install_rss_element' do let(:raw_feed) { file_from_fixtures('feed.rss', 'feed').read } diff --git a/spec/lib/feed_item_accessor_spec.rb b/spec/lib/feed_item_accessor_spec.rb index 8a457d8d7ac..30293f0e83b 100644 --- a/spec/lib/feed_item_accessor_spec.rb +++ b/spec/lib/feed_item_accessor_spec.rb @@ -2,8 +2,6 @@ require 'rss' require 'feed_item_accessor' -require 'rails_helper' - describe FeedItemAccessor do context 'for ATOM feed' do let(:atom_feed) { RSS::Parser.parse(file_from_fixtures('feed.atom', 'feed'), false) } diff --git a/spec/lib/file_helper_spec.rb b/spec/lib/file_helper_spec.rb index 910a4c8434e..ae1d721f52d 100644 --- a/spec/lib/file_helper_spec.rb +++ b/spec/lib/file_helper_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'file_helper' describe FileHelper do diff --git a/spec/lib/file_store/base_store_spec.rb b/spec/lib/file_store/base_store_spec.rb index 05befda29a4..0a8cba20a83 100644 --- a/spec/lib/file_store/base_store_spec.rb +++ b/spec/lib/file_store/base_store_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - RSpec.describe FileStore::BaseStore do fab!(:upload) { Fabricate(:upload, id: 9999, sha1: Digest::SHA1.hexdigest('9999')) } diff --git a/spec/lib/file_store/local_store_spec.rb b/spec/lib/file_store/local_store_spec.rb index 60ac2a59579..7a0fb175188 100644 --- a/spec/lib/file_store/local_store_spec.rb +++ b/spec/lib/file_store/local_store_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'file_store/local_store' describe FileStore::LocalStore do diff --git a/spec/lib/file_store/s3_store_spec.rb b/spec/lib/file_store/s3_store_spec.rb index ce9b9be143a..91ab3b9f109 100644 --- a/spec/lib/file_store/s3_store_spec.rb +++ b/spec/lib/file_store/s3_store_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'file_store/s3_store' require 'file_store/local_store' diff --git a/spec/lib/filter_best_posts_spec.rb b/spec/lib/filter_best_posts_spec.rb index d88a359eea7..a536b6cce0b 100644 --- a/spec/lib/filter_best_posts_spec.rb +++ b/spec/lib/filter_best_posts_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'filter_best_posts' require 'topic_view' diff --git a/spec/lib/final_destination_spec.rb b/spec/lib/final_destination_spec.rb index b1ce1a262a0..2c78f440ce8 100644 --- a/spec/lib/final_destination_spec.rb +++ b/spec/lib/final_destination_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'final_destination' describe FinalDestination do diff --git a/spec/lib/flag_settings_spec.rb b/spec/lib/flag_settings_spec.rb index 16668a8620d..6dd895ede85 100644 --- a/spec/lib/flag_settings_spec.rb +++ b/spec/lib/flag_settings_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'flag_settings' RSpec.describe FlagSettings do diff --git a/spec/lib/freedom_patches/safe_buffer_spec.rb b/spec/lib/freedom_patches/safe_buffer_spec.rb index f7653bb0b7c..0ddc769268b 100644 --- a/spec/lib/freedom_patches/safe_buffer_spec.rb +++ b/spec/lib/freedom_patches/safe_buffer_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe ActiveSupport::SafeBuffer do it "can cope with encoding weirdness" do buffer = ActiveSupport::SafeBuffer.new diff --git a/spec/lib/freedom_patches/schema_migration_details_spec.rb b/spec/lib/freedom_patches/schema_migration_details_spec.rb index 05a7a0d9a6a..5812e865516 100644 --- a/spec/lib/freedom_patches/schema_migration_details_spec.rb +++ b/spec/lib/freedom_patches/schema_migration_details_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe FreedomPatches::SchemaMigrationDetails do # we usually don't really need this model so lets not clutter up with it diff --git a/spec/lib/freedom_patches/seed_fu_spec.rb b/spec/lib/freedom_patches/seed_fu_spec.rb index 3bb1876411a..80fd3e79f60 100644 --- a/spec/lib/freedom_patches/seed_fu_spec.rb +++ b/spec/lib/freedom_patches/seed_fu_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe "seed-fu patch" do it "does not modify a sequence on an existing table" do u = User.create!(username: "test1", email: "test1@example.com") diff --git a/spec/lib/freedom_patches/translate_accelerator_spec.rb b/spec/lib/freedom_patches/translate_accelerator_spec.rb index 53346b92feb..c85f0ae5ff7 100644 --- a/spec/lib/freedom_patches/translate_accelerator_spec.rb +++ b/spec/lib/freedom_patches/translate_accelerator_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "rails_helper" - describe "translate accelerator" do before do @original_i18n_load_path = I18n.load_path.dup diff --git a/spec/lib/gaps_spec.rb b/spec/lib/gaps_spec.rb index 234cf1a9619..cf270d7f47d 100644 --- a/spec/lib/gaps_spec.rb +++ b/spec/lib/gaps_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'cache' describe Gaps do diff --git a/spec/lib/global_path_spec.rb b/spec/lib/global_path_spec.rb index 2a940051380..9d3f24461ff 100644 --- a/spec/lib/global_path_spec.rb +++ b/spec/lib/global_path_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'global_path' class GlobalPathInstance diff --git a/spec/lib/group_email_credentials_check_spec.rb b/spec/lib/group_email_credentials_check_spec.rb index 152fc4a1af3..4952a94c1c4 100644 --- a/spec/lib/group_email_credentials_check_spec.rb +++ b/spec/lib/group_email_credentials_check_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'net/smtp' require 'net/imap' diff --git a/spec/lib/guardian/topic_guardian_spec.rb b/spec/lib/guardian/topic_guardian_spec.rb index d7010a92ad4..538928ea464 100644 --- a/spec/lib/guardian/topic_guardian_spec.rb +++ b/spec/lib/guardian/topic_guardian_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe TopicGuardian do fab!(:admin) { Fabricate(:admin) } fab!(:tl3_user) { Fabricate(:leader) } diff --git a/spec/lib/guardian/user_guardian_spec.rb b/spec/lib/guardian/user_guardian_spec.rb index 56b532b2984..70ef35f2891 100644 --- a/spec/lib/guardian/user_guardian_spec.rb +++ b/spec/lib/guardian/user_guardian_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe UserGuardian do let :user do diff --git a/spec/lib/guardian_spec.rb b/spec/lib/guardian_spec.rb index 3326492c3be..64d79ec2c1d 100644 --- a/spec/lib/guardian_spec.rb +++ b/spec/lib/guardian_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - require 'guardian' describe Guardian do diff --git a/spec/lib/has_errors_spec.rb b/spec/lib/has_errors_spec.rb index 5feea235ffb..1e0b63b813c 100644 --- a/spec/lib/has_errors_spec.rb +++ b/spec/lib/has_errors_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'has_errors' describe HasErrors do diff --git a/spec/lib/highlight_js/highlight_js_spec.rb b/spec/lib/highlight_js/highlight_js_spec.rb index aaf12f4c8b4..8c8da79a7f2 100644 --- a/spec/lib/highlight_js/highlight_js_spec.rb +++ b/spec/lib/highlight_js/highlight_js_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe HighlightJs do it 'can list languages' do expect(HighlightJs.languages).to include('thrift') diff --git a/spec/lib/hijack_spec.rb b/spec/lib/hijack_spec.rb index b75e522acba..43bb9814c92 100644 --- a/spec/lib/hijack_spec.rb +++ b/spec/lib/hijack_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe Hijack do class Hijack::Tester < ApplicationController attr_reader :io diff --git a/spec/lib/html_prettify_spec.rb b/spec/lib/html_prettify_spec.rb index c6e0c8a196d..bea24b271b8 100644 --- a/spec/lib/html_prettify_spec.rb +++ b/spec/lib/html_prettify_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'html_prettify' describe HtmlPrettify do diff --git a/spec/lib/html_to_markdown_spec.rb b/spec/lib/html_to_markdown_spec.rb index f95da5c8abb..23ac121c88c 100644 --- a/spec/lib/html_to_markdown_spec.rb +++ b/spec/lib/html_to_markdown_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'html_to_markdown' describe HtmlToMarkdown do diff --git a/spec/lib/i18n/discourse_i18n_spec.rb b/spec/lib/i18n/discourse_i18n_spec.rb index 759467675dc..001c4aadb9e 100644 --- a/spec/lib/i18n/discourse_i18n_spec.rb +++ b/spec/lib/i18n/discourse_i18n_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'i18n/backend/discourse_i18n' require 'translation_override' diff --git a/spec/lib/i18n/fallback_locale_list_spec.rb b/spec/lib/i18n/fallback_locale_list_spec.rb index 6f4dc348c23..4951d7761b7 100644 --- a/spec/lib/i18n/fallback_locale_list_spec.rb +++ b/spec/lib/i18n/fallback_locale_list_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'i18n/backend/fallback_locale_list' describe I18n::Backend::FallbackLocaleList do diff --git a/spec/lib/i18n/i18n_interpolation_keys_finder_spec.rb b/spec/lib/i18n/i18n_interpolation_keys_finder_spec.rb index 46901b463dd..a19c70cc631 100644 --- a/spec/lib/i18n/i18n_interpolation_keys_finder_spec.rb +++ b/spec/lib/i18n/i18n_interpolation_keys_finder_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require "i18n/i18n_interpolation_keys_finder" RSpec.describe I18nInterpolationKeysFinder do diff --git a/spec/lib/image_sizer_spec.rb b/spec/lib/image_sizer_spec.rb index 5c41afec225..cd378a25318 100644 --- a/spec/lib/image_sizer_spec.rb +++ b/spec/lib/image_sizer_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'image_sizer' describe ImageSizer do diff --git a/spec/lib/imap/providers/detector_spec.rb b/spec/lib/imap/providers/detector_spec.rb index 0316160c3c3..e4cac7ecdce 100644 --- a/spec/lib/imap/providers/detector_spec.rb +++ b/spec/lib/imap/providers/detector_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - RSpec.describe Imap::Providers::Detector do it "returns the gmail provider if the gmail imap server is used" do config = { diff --git a/spec/lib/imap/providers/generic_spec.rb b/spec/lib/imap/providers/generic_spec.rb index c983fbce0a2..0a5a60a8b66 100644 --- a/spec/lib/imap/providers/generic_spec.rb +++ b/spec/lib/imap/providers/generic_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - RSpec.describe Imap::Providers::Generic do fab!(:username) { "test@generic.com" } fab!(:password) { "test1!" } diff --git a/spec/lib/imap/providers/gmail_spec.rb b/spec/lib/imap/providers/gmail_spec.rb index 014cd1bc1ea..bdf049acf4d 100644 --- a/spec/lib/imap/providers/gmail_spec.rb +++ b/spec/lib/imap/providers/gmail_spec.rb @@ -1,8 +1,6 @@ # frozen_string_literal: true -require 'rails_helper' - RSpec.describe Imap::Providers::Gmail do fab!(:username) { "test@generic.com" } fab!(:password) { "test1!" } diff --git a/spec/lib/imap/sync_spec.rb b/spec/lib/imap/sync_spec.rb index 3c494904bb2..37081e03507 100644 --- a/spec/lib/imap/sync_spec.rb +++ b/spec/lib/imap/sync_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'imap/sync' describe Imap::Sync do diff --git a/spec/lib/import/normalize_spec.rb b/spec/lib/import/normalize_spec.rb index b89ab8b414d..724e7ae3177 100644 --- a/spec/lib/import/normalize_spec.rb +++ b/spec/lib/import/normalize_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "rails_helper" - describe Import::Normalize do describe "#normalize_code_blocks" do it "normalizes 2 code blocks correctly" do diff --git a/spec/lib/inline_oneboxer_spec.rb b/spec/lib/inline_oneboxer_spec.rb index 8f89e48a32c..9d0c4a67892 100644 --- a/spec/lib/inline_oneboxer_spec.rb +++ b/spec/lib/inline_oneboxer_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe InlineOneboxer do it "should return nothing with empty input" do diff --git a/spec/lib/introduction_updater_spec.rb b/spec/lib/introduction_updater_spec.rb index 49698e56e05..152a87cbdfa 100644 --- a/spec/lib/introduction_updater_spec.rb +++ b/spec/lib/introduction_updater_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'introduction_updater' describe IntroductionUpdater do diff --git a/spec/lib/js_locale_helper_spec.rb b/spec/lib/js_locale_helper_spec.rb index 27c8290ef90..b24f63b8d13 100644 --- a/spec/lib/js_locale_helper_spec.rb +++ b/spec/lib/js_locale_helper_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'mini_racer' describe JsLocaleHelper do diff --git a/spec/lib/json_error_spec.rb b/spec/lib/json_error_spec.rb index fdeaa6ce83d..fda4dc2c2cd 100644 --- a/spec/lib/json_error_spec.rb +++ b/spec/lib/json_error_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - shared_examples "a generic error" do let(:result) { creator.create_errors_json(obj) } diff --git a/spec/lib/letter_avatar_spec.rb b/spec/lib/letter_avatar_spec.rb index 9b2f87d3ca0..cd4f5c40494 100644 --- a/spec/lib/letter_avatar_spec.rb +++ b/spec/lib/letter_avatar_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'letter_avatar' describe LetterAvatar do diff --git a/spec/lib/message_id_service_spec.rb b/spec/lib/message_id_service_spec.rb index 7d40d6531f2..87ea7401859 100644 --- a/spec/lib/message_id_service_spec.rb +++ b/spec/lib/message_id_service_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe Email::MessageIdService do fab!(:topic) { Fabricate(:topic) } fab!(:post) { Fabricate(:post, topic: topic) } diff --git a/spec/lib/method_profiler_spec.rb b/spec/lib/method_profiler_spec.rb index df2e2fdd72a..b28802343a7 100644 --- a/spec/lib/method_profiler_spec.rb +++ b/spec/lib/method_profiler_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe MethodProfiler do class Sneetch def beach diff --git a/spec/lib/middleware/anonymous_cache_spec.rb b/spec/lib/middleware/anonymous_cache_spec.rb index 0d7868401c0..88257a40de6 100644 --- a/spec/lib/middleware/anonymous_cache_spec.rb +++ b/spec/lib/middleware/anonymous_cache_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "rails_helper" - describe Middleware::AnonymousCache do let(:middleware) { Middleware::AnonymousCache.new(lambda { |_| [200, {}, []] }) } diff --git a/spec/lib/middleware/discourse_public_exceptions_spec.rb b/spec/lib/middleware/discourse_public_exceptions_spec.rb index ac1a0cc6ceb..b531213daec 100644 --- a/spec/lib/middleware/discourse_public_exceptions_spec.rb +++ b/spec/lib/middleware/discourse_public_exceptions_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "rails_helper" - describe Middleware::DiscoursePublicExceptions do before do @orig_logger = Rails.logger diff --git a/spec/lib/middleware/enforce_hostname_spec.rb b/spec/lib/middleware/enforce_hostname_spec.rb index 1a065ebdaa8..22d8834a744 100644 --- a/spec/lib/middleware/enforce_hostname_spec.rb +++ b/spec/lib/middleware/enforce_hostname_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "rails_helper" - describe Middleware::EnforceHostname do before do diff --git a/spec/lib/middleware/request_tracker_spec.rb b/spec/lib/middleware/request_tracker_spec.rb index ff787c66f19..9c87b7e2677 100644 --- a/spec/lib/middleware/request_tracker_spec.rb +++ b/spec/lib/middleware/request_tracker_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "rails_helper" - describe Middleware::RequestTracker do def env(opts = {}) create_request_env.merge( diff --git a/spec/lib/migration/column_dropper_spec.rb b/spec/lib/migration/column_dropper_spec.rb index 4dd4758633a..1aa0a359b04 100644 --- a/spec/lib/migration/column_dropper_spec.rb +++ b/spec/lib/migration/column_dropper_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - RSpec.describe Migration::ColumnDropper do def has_column?(table, column) DB.exec(<<~SQL, table: table, column: column) == 1 diff --git a/spec/lib/migration/safe_migrate_spec.rb b/spec/lib/migration/safe_migrate_spec.rb index cec7b9710b6..5ab63616c5b 100644 --- a/spec/lib/migration/safe_migrate_spec.rb +++ b/spec/lib/migration/safe_migrate_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe Migration::SafeMigrate do before do Migration::SafeMigrate::SafeMigration.disable_safe! diff --git a/spec/lib/migration/table_dropper_spec.rb b/spec/lib/migration/table_dropper_spec.rb index 9966aeb3e87..dc5397e141b 100644 --- a/spec/lib/migration/table_dropper_spec.rb +++ b/spec/lib/migration/table_dropper_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe Migration::TableDropper do def table_exists?(table_name) diff --git a/spec/lib/mini_sql_multisite_connection_spec.rb b/spec/lib/mini_sql_multisite_connection_spec.rb index 3534f5e34fc..6072593ded9 100644 --- a/spec/lib/mini_sql_multisite_connection_spec.rb +++ b/spec/lib/mini_sql_multisite_connection_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe MiniSqlMultisiteConnection do describe "after_commit" do diff --git a/spec/lib/new_post_manager_spec.rb b/spec/lib/new_post_manager_spec.rb index ff7085f4d38..5344e328d07 100644 --- a/spec/lib/new_post_manager_spec.rb +++ b/spec/lib/new_post_manager_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'new_post_manager' describe NewPostManager do diff --git a/spec/lib/new_post_result_spec.rb b/spec/lib/new_post_result_spec.rb index 14358c623e5..ad1f94f918f 100644 --- a/spec/lib/new_post_result_spec.rb +++ b/spec/lib/new_post_result_spec.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' require 'new_post_result' describe NewPostResult do diff --git a/spec/lib/onebox/domain_checker_spec.rb b/spec/lib/onebox/domain_checker_spec.rb index 0132babc746..aa4bd04338d 100644 --- a/spec/lib/onebox/domain_checker_spec.rb +++ b/spec/lib/onebox/domain_checker_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "rails_helper" - describe Onebox::DomainChecker do describe '.is_blocked?' do before do diff --git a/spec/lib/onebox/engine/allowlisted_generic_onebox_spec.rb b/spec/lib/onebox/engine/allowlisted_generic_onebox_spec.rb index 8c625211248..b46b2450d3a 100644 --- a/spec/lib/onebox/engine/allowlisted_generic_onebox_spec.rb +++ b/spec/lib/onebox/engine/allowlisted_generic_onebox_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "rails_helper" - describe Onebox::Engine::AllowlistedGenericOnebox do describe ".===" do it "matches any domain" do diff --git a/spec/lib/onebox/engine/amazon_onebox_spec.rb b/spec/lib/onebox/engine/amazon_onebox_spec.rb index 9cf409bc057..6f3f882457c 100644 --- a/spec/lib/onebox/engine/amazon_onebox_spec.rb +++ b/spec/lib/onebox/engine/amazon_onebox_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "rails_helper" - describe Onebox::Engine::AmazonOnebox do context "regular amazon page" do before do diff --git a/spec/lib/onebox/engine/animated_image_onebox_spec.rb b/spec/lib/onebox/engine/animated_image_onebox_spec.rb index b5cb9710c36..49796b91fe4 100644 --- a/spec/lib/onebox/engine/animated_image_onebox_spec.rb +++ b/spec/lib/onebox/engine/animated_image_onebox_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "rails_helper" - describe Onebox::Engine::AnimatedImageOnebox do let(:giphy) { "http://gph.is/15bRbWf" } let(:direct_gif) { "https://media4.giphy.com/media/Zatyu5LBO2zCyhiAAs/giphy.gif" } diff --git a/spec/lib/onebox/engine/audio_onebox_spec.rb b/spec/lib/onebox/engine/audio_onebox_spec.rb index dbb12ad6de5..a7054f908df 100644 --- a/spec/lib/onebox/engine/audio_onebox_spec.rb +++ b/spec/lib/onebox/engine/audio_onebox_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "rails_helper" - describe Onebox::Engine::AudioOnebox do it "supports ogg" do expect(Onebox.preview('http://upload.wikimedia.org/wikipedia/commons/c/c8/Example.ogg').to_s).to match(/