A platform for community discussion. Free, open, simple.
DEV: Fix random typos (#22078)
Jarek Radoszdae3970badc0
diff --git a/spec/models/form_template_spec.rb b/spec/models/form_template_spec.rbindex f7c730d9795..d36a8c67ee1 100644--- a/spec/models/form_template_spec.rb+++ b/spec/models/form_template_spec.rb@@ -24,7 +24,7 @@ RSpec.describe FormTemplate, type: :model doexpect(t.save).to eq(false)end- it "must have a type propety" do+ it "must have a type property" dotemplate = "- hello: world"t = Fabricate.build(:form_template, name: "Basic Template", template: template)expect(t.save).to eq(false)diff --git a/spec/models/notification_spec.rb b/spec/models/notification_spec.rbindex ee3c09c4d9b..447ac9e2ae7 100644--- a/spec/models/notification_spec.rb+++ b/spec/models/notification_spec.rb@@ -277,7 +277,7 @@ RSpec.describe Notification doPostAlerter.post_created(@post)end- it "should create and rollup private message notifications" do+ it "should create and roll up private message notifications" doexpect(@target.notifications.first.notification_type).to eq(Notification.types[:private_message],)diff --git a/spec/models/screened_ip_address_spec.rb b/spec/models/screened_ip_address_spec.rbindex 4e277a08ccf..12dc678ae33 100644--- a/spec/models/screened_ip_address_spec.rb+++ b/spec/models/screened_ip_address_spec.rb@@ -222,7 +222,7 @@ RSpec.describe ScreenedIpAddress doexpect(screened_ip_address.reload.match_count).to eq(0)end- it "returns false if a more specific recrord matches and action is :do_nothing" do+ it "returns false if a more specific record matches and action is :do_nothing" doFabricate(:screened_ip_address,ip_address: "111.234.23.0/24",diff --git a/spec/models/sitemap_spec.rb b/spec/models/sitemap_spec.rbindex 1f922b5805b..254e24127d3 100644--- a/spec/models/sitemap_spec.rb+++ b/spec/models/sitemap_spec.rb@@ -85,7 +85,7 @@ RSpec.describe Sitemap doexpect(sitemap.topics).to be_emptyend- it "returns all the neccessary topic attributes to render a sitemap URL" do+ it "returns all the necessary topic attributes to render a sitemap URL" dotopic = Fabricate(:topic)topics_data = sitemap.topics.firstdiff --git a/spec/models/topic_converter_spec.rb b/spec/models/topic_converter_spec.rbindex 9d8da65a333..380aa63a2df 100644--- a/spec/models/topic_converter_spec.rb+++ b/spec/models/topic_converter_spec.rb@@ -183,8 +183,8 @@ RSpec.describe TopicConverter doit "invites only users with regular posts" dopost2 = Fabricate(:post, topic: topic)- whipser_post = Fabricate(:post, topic: topic, post_type: Post.types[:whisper])- small_action_post = Fabricate(:post, topic: topic, post_type: Post.types[:small_action])+ Fabricate(:post, topic: topic, post_type: Post.types[:whisper])+ Fabricate(:post, topic: topic, post_type: Post.types[:small_action])topic.convert_to_private_message(admin)diff --git a/spec/models/topic_spec.rb b/spec/models/topic_spec.rbindex d5af3d60ec6..2014ad8f5b7 100644--- a/spec/models/topic_spec.rb+++ b/spec/models/topic_spec.rb@@ -3097,7 +3097,7 @@ RSpec.describe Topic doenddescribe "removing oneself" do- it "should remove onself" do+ it "should remove oneself" dotopic.allowed_users << user1expect(topic.remove_allowed_user(user1, user1)).to eq(true)diff --git a/spec/models/topic_thumbnail_spec.rb b/spec/models/topic_thumbnail_spec.rbindex 1b070e729e0..d529d26f26d 100644--- a/spec/models/topic_thumbnail_spec.rb+++ b/spec/models/topic_thumbnail_spec.rb@@ -20,7 +20,7 @@ RSpec.describe "TopicThumbnail" doexpect(topic.topic_thumbnails.length).to eq(1)end- it "does not enque job if original image is too large" do+ it "does not enqueue job if original image is too large" doupload2.filesize = SiteSetting.max_image_size_kb.kilobytes + 1SiteSetting.create_thumbnails = truetopic2.generate_thumbnails!(extra_sizes: nil)@@ -32,7 +32,7 @@ RSpec.describe "TopicThumbnail" doexpect(Jobs::GenerateTopicThumbnails.jobs.size).to eq(0)end- it "does not enque job if image_upload width is nil" do+ it "does not enqueue job if image_upload width is nil" doSiteSetting.create_thumbnails = truetopic3.image_url(enqueue_if_missing: true)diff --git a/spec/models/upload_reference_spec.rb b/spec/models/upload_reference_spec.rbindex 79785d12de9..c7675a4577a 100644--- a/spec/models/upload_reference_spec.rb+++ b/spec/models/upload_reference_spec.rb@@ -127,7 +127,7 @@ RSpec.describe UploadReference dodescribe "theme field uploads" dofab!(:upload) { Fabricate(:upload) }- it "creates upload refererences" do+ it "creates upload references" dotheme_field = nilexpect dotheme_field =@@ -152,7 +152,7 @@ RSpec.describe UploadReference dodescribe "theme setting uploads" dofab!(:upload) { Fabricate(:upload) }- it "creates upload refererences" do+ it "creates upload references" dotheme_setting = nilexpect dotheme_setting =diff --git a/spec/multisite/s3_store_spec.rb b/spec/multisite/s3_store_spec.rbindex 17eb4e9961f..062bbecde6d 100644--- a/spec/multisite/s3_store_spec.rb+++ b/spec/multisite/s3_store_spec.rb@@ -202,7 +202,7 @@ RSpec.describe "Multisite s3 uploads", type: :multisite doendend- describe "secure uploadss" do+ describe "secure uploads" dolet(:store) { FileStore::S3Store.new }let(:client) { Aws::S3::Client.new(stub_responses: true) }let(:resource) { Aws::S3::Resource.new(client: client) }@@ -401,7 +401,7 @@ RSpec.describe "Multisite s3 uploads", type: :multisite do)end- it "presigned url contans the metadata when provided" do+ it "presigned url contains the metadata when provided" dourl =store.signed_url_for_temporary_upload("test.png", metadata: { "test-meta": "testing" })expect(url).to include("&x-amz-meta-test-meta=testing")diff --git a/spec/requests/admin/backups_controller_spec.rb b/spec/requests/admin/backups_controller_spec.rbindex 6bb5519c5f0..a2157f144ce 100644--- a/spec/requests/admin/backups_controller_spec.rb+++ b/spec/requests/admin/backups_controller_spec.rb@@ -595,7 +595,7 @@ RSpec.describe Admin::BackupsController do)end- it "works with multiple chunks when the final chunk is just the remaninder" do+ it "works with multiple chunks when the final chunk is just the remainder" dofreeze_timedescribed_class.any_instance.expects(:has_enough_space_on_disk?).times(3).returns(true)diff --git a/spec/requests/admin/form_templates_controller_spec.rb b/spec/requests/admin/form_templates_controller_spec.rbindex 0a858452a26..c8503cb2563 100644--- a/spec/requests/admin/form_templates_controller_spec.rb+++ b/spec/requests/admin/form_templates_controller_spec.rb@@ -31,7 +31,7 @@ RSpec.describe Admin::FormTemplatesController doendend- context "when experiemental form templates is disabled" do+ context "when experimental form templates is disabled" dobefore dosign_in(admin)SiteSetting.experimental_form_templates = falsediff --git a/spec/requests/admin/groups_controller_spec.rb b/spec/requests/admin/groups_controller_spec.rbindex 5f101bf10bc..f36ec50a38c 100644--- a/spec/requests/admin/groups_controller_spec.rb+++ b/spec/requests/admin/groups_controller_spec.rb@@ -76,7 +76,7 @@ RSpec.describe Admin::GroupsController docontext "with Group.plugin_permitted_params" doafter { DiscoursePluginRegistry.reset! }- it "filter unpermitted params" do+ it "filter non-permitted params" doparams = group_paramsparams[:group].merge!(allow_unknown_sender_topic_replies: true)@@ -448,7 +448,7 @@ RSpec.describe Admin::GroupsController doexpect(response.parsed_body["user_count"]).to eq(2)end- it "doesn't responde with 500 if domain is invalid" do+ it "doesn't respond with 500 if domain is invalid" dogroup = Fabricate(:group)put "/admin/groups/automatic_membership_count.json",diff --git a/spec/requests/admin/site_settings_controller_spec.rb b/spec/requests/admin/site_settings_controller_spec.rbindex b0dcd4987a5..05bfda5edc8 100644--- a/spec/requests/admin/site_settings_controller_spec.rb+++ b/spec/requests/admin/site_settings_controller_spec.rb@@ -331,7 +331,7 @@ RSpec.describe Admin::SiteSettingsController doendend- it "enqueus the backfilling job if update_existing_user param is present when updating default sidebar tags" do+ it "enqueues the backfilling job if update_existing_user param is present when updating default sidebar tags" doSiteSetting.default_sidebar_tags = "tag3"expect_enqueued_with(@@ -352,7 +352,7 @@ RSpec.describe Admin::SiteSettingsController doendend- it "enqueus the backfilling job if update_existing_user param is present when updating default sidebar categories" do+ it "enqueues the backfilling job if update_existing_user param is present when updating default sidebar categories" doSiteSetting.default_sidebar_categories = "3|4"expect_enqueued_with(@@ -607,7 +607,7 @@ RSpec.describe Admin::SiteSettingsController doexpect(response.status).to eq(200)end- it "does not allow changing of unconfigurable settings" do+ it "does not allow changing of non-configurable settings" doSiteSetting::SAMPLE_TEST_PLUGIN.stubs(:configurable?).returns(false)put "/admin/site_settings/plugin_setting.json", params: { plugin_setting: "not allowed" }diff --git a/spec/requests/admin/themes_controller_spec.rb b/spec/requests/admin/themes_controller_spec.rbindex c2874670b61..75571da04f5 100644--- a/spec/requests/admin/themes_controller_spec.rb+++ b/spec/requests/admin/themes_controller_spec.rb@@ -236,7 +236,7 @@ RSpec.describe Admin::ThemesController doendit "fails to import with a failing status" do- post "/admin/themes/import.json", params: { remote: "non-existant" }+ post "/admin/themes/import.json", params: { remote: "non-existent" }expect(response.status).to eq(422)enddiff --git a/spec/requests/admin/users_controller_spec.rb b/spec/requests/admin/users_controller_spec.rbindex bdb6593e017..6ccabc56a18 100644--- a/spec/requests/admin/users_controller_spec.rb+++ b/spec/requests/admin/users_controller_spec.rb@@ -1430,7 +1430,7 @@ RSpec.describe Admin::UsersController doendshared_examples "user log out not allowed" do- it "prevents loging out of user with a 404 response" do+ it "prevents logging out of user with a 404 response" dopost "/admin/users/#{reg_user.id}/log_out.json"expect(response.status).to eq(404)diff --git a/spec/system/composer/category_templates_spec.rb b/spec/system/composer/category_templates_spec.rbindex 1115c152600..f930a483646 100644--- a/spec/system/composer/category_templates_spec.rb+++ b/spec/system/composer/category_templates_spec.rb@@ -46,7 +46,7 @@ describe "Composer Form Templates", type: :system doFabricate(:category,name: "Multiple",- slug: "mulitple",+ slug: "multiple",topic_count: 10,form_template_ids: [form_template_1.id, form_template_2.id],)@@ -111,7 +111,7 @@ describe "Composer Form Templates", type: :system doexpect(composer).to have_composer_preview_toggleend- it "hides the preivew when a category with a form template is selected" do+ it "hides the preview when a category with a form template is selected" docategory_page.visit(category_with_template_1)category_page.new_topic_button.clickexpect(composer).to have_no_composer_previewdiff --git a/spec/system/composer/review_media_unless_trust_level_spec.rb b/spec/system/composer/review_media_unless_trust_level_spec.rbindex 941808eb80f..487d0beca2d 100644--- a/spec/system/composer/review_media_unless_trust_level_spec.rb+++ b/spec/system/composer/review_media_unless_trust_level_spec.rb@@ -4,7 +4,6 @@ describe "Composer using review_media", type: :system dofab!(:user) { Fabricate(:user) }fab!(:topic) { Fabricate(:topic, category: Category.find(SiteSetting.uncategorized_category_id)) }fab!(:post) { Fabricate(:post, topic: topic) }- # fab!(:upload) { Fabricate(:upload) }let(:topic_page) { PageObjects::Pages::Topic.new }before dodiff --git a/spec/system/discovery_breadcrumb_navigation_spec.rb b/spec/system/discovery_breadcrumb_navigation_spec.rbindex 41b05402f3c..d72fd1f1e43 100644--- a/spec/system/discovery_breadcrumb_navigation_spec.rb+++ b/spec/system/discovery_breadcrumb_navigation_spec.rb@@ -86,7 +86,7 @@ describe "Navigating with breadcrumbs", type: :system doendend- describe "initial pageloads for nosubcategories" do+ describe "initial page loads for no-subcategories" doit "shows correct data for /c/" dovisit("/c/#{category3.id}")expect(page).to have_current_path("/c/#{category3.slug}/#{category3.id}/none")diff --git a/spec/system/tag_synonyms_spec.rb b/spec/system/tag_synonyms_spec.rbindex 5a0547955c0..10fc6ac5b22 100644--- a/spec/system/tag_synonyms_spec.rb+++ b/spec/system/tag_synonyms_spec.rb@@ -27,7 +27,7 @@ describe "Tag synonyms", type: :system dotags_page.visit_tag(tag_1)tags_page.tag_info_btn.clicktags_page.edit_synonyms_btn.click- # searched tag doesnt exist but will show option to create tag+ # searched tag doesn't exist but will show option to create tagtags_page.search_tags("graphics")tags_page.select_tag(value: "graphics")tags_page.add_synonym_btn.clickdiff --git a/spec/system/viewing_sidebar_mobile_spec.rb b/spec/system/viewing_sidebar_mobile_spec.rbindex daa71e2b164..192fe4d07e4 100644--- a/spec/system/viewing_sidebar_mobile_spec.rb+++ b/spec/system/viewing_sidebar_mobile_spec.rb@@ -34,7 +34,7 @@ describe "Viewing sidebar mobile", type: :system, mobile: true doexpect(sidebar_dropdown).to be_hiddenend- it "collpases the sidebar when clicking on a link in the sidebar" do+ it "collapses the sidebar when clicking on a link in the sidebar" dovisit("/latest")sidebar_dropdown.clickdiff --git a/spec/views/list/list.erb_spec.rb b/spec/views/list/list.erb_spec.rbindex e83def6a3e4..8b8ebfb9a70 100644--- a/spec/views/list/list.erb_spec.rb+++ b/spec/views/list/list.erb_spec.rb@@ -18,7 +18,7 @@ RSpec.describe "list/list.erb" do)end- it "adds sturctured data" do+ it "adds structured data" doview.stubs(:include_crawler_content?).returns(true)topic.posters = []assign(:list, OpenStruct.new(topics: [topic]))diff --git a/spec/views/topics/show.html.erb_spec.rb b/spec/views/topics/show.html.erb_spec.rbindex 026e58ff965..d99be622c30 100644--- a/spec/views/topics/show.html.erb_spec.rb+++ b/spec/views/topics/show.html.erb_spec.rb@@ -21,7 +21,7 @@ RSpec.describe "topics/show.html.erb" do)end- it "adds sturctured data" do+ it "adds structured data" doview.stubs(:include_crawler_content?).returns(true)post = Fabricate(:post, topic: topic)TopicLink.create!(