diff --git a/app/assets/javascripts/admin/addon/models/admin-plugin.js b/app/assets/javascripts/admin/addon/models/admin-plugin.js
index eec9516bb65..0fdf16b9460 100644
--- a/app/assets/javascripts/admin/addon/models/admin-plugin.js
+++ b/app/assets/javascripts/admin/addon/models/admin-plugin.js
@@ -55,7 +55,7 @@ export default class AdminPlugin {
get nameTitleized() {
// The category name is better in a lot of cases, as it's a human-inputted
// translation, and we can handle things like SAML instead of showing them
- // as Saml from discourse-saml. We can fall back to the programattic version
+ // as Saml from discourse-saml. We can fall back to the programmatic version
// though if needed.
let name;
if (this.translatedCategoryName) {
diff --git a/app/assets/javascripts/discourse/app/lib/plugin-api.js b/app/assets/javascripts/discourse/app/lib/plugin-api.js
index 6fa7b09a7a1..adb83e97bb5 100644
--- a/app/assets/javascripts/discourse/app/lib/plugin-api.js
+++ b/app/assets/javascripts/discourse/app/lib/plugin-api.js
@@ -627,10 +627,10 @@ class PluginApi {
*
* ```
*
- * action: may be a string or a function. If it is a string, a wiget action
+ * action: may be a string or a function. If it is a string, a widget action
* will be triggered. If it is function, the function will be called.
*
- * function will recieve a single argument:
+ * function will receive a single argument:
* {
* post:
* showFeedback:
diff --git a/app/assets/javascripts/discourse/app/loader-shims.js b/app/assets/javascripts/discourse/app/loader-shims.js
index 4e2e3153da0..cad2dc704c1 100644
--- a/app/assets/javascripts/discourse/app/loader-shims.js
+++ b/app/assets/javascripts/discourse/app/loader-shims.js
@@ -1,7 +1,7 @@
import { importSync } from "@embroider/macros";
import loaderShim from "discourse-common/lib/loader-shim";
-// AMD shims for the app bunndle, see the comment in loader-shim.js
+// AMD shims for the app bundle, see the comment in loader-shim.js
// These effectively become public APIs for plugins, so add/remove them carefully
loaderShim("@discourse/itsatrap", () => importSync("@discourse/itsatrap"));
loaderShim("@ember-compat/tracked-built-ins", () =>
diff --git a/app/assets/javascripts/discourse/tests/loader-shims.js b/app/assets/javascripts/discourse/tests/loader-shims.js
index 41c2b164053..39ccb753492 100644
--- a/app/assets/javascripts/discourse/tests/loader-shims.js
+++ b/app/assets/javascripts/discourse/tests/loader-shims.js
@@ -1,7 +1,7 @@
import { importSync } from "@embroider/macros";
import loaderShim from "discourse-common/lib/loader-shim";
-// AMD shims for the test bunndle, see the comment in loader-shim.js
+// AMD shims for the test bundle, see the comment in loader-shim.js
loaderShim("pretender", () => importSync("pretender"));
loaderShim("qunit", () => importSync("qunit"));
loaderShim("sinon", () => importSync("sinon"));
diff --git a/plugins/chat/spec/system/chat_composer_draft_spec.rb b/plugins/chat/spec/system/chat_composer_draft_spec.rb
index 60ec32d67b4..c64aa3dcce0 100644
--- a/plugins/chat/spec/system/chat_composer_draft_spec.rb
+++ b/plugins/chat/spec/system/chat_composer_draft_spec.rb
@@ -129,7 +129,7 @@ RSpec.describe "Chat composer draft", type: :system do
)
end
- it "loads the draft with replied to mesage" do
+ it "loads the draft with replied to message" do
chat_page.visit_channel(channel_1)
expect(channel_page.composer.value).to eq("draft")
diff --git a/spec/fabricators/post_fabricator.rb b/spec/fabricators/post_fabricator.rb
index 30cb72e395c..8e908b8bae5 100644
--- a/spec/fabricators/post_fabricator.rb
+++ b/spec/fabricators/post_fabricator.rb
@@ -78,7 +78,7 @@ Fabricator(:post_with_uploaded_image, from: :post) do
end
Fabricator(:post_with_an_attachment, from: :post) do
- raw "archive.zip"
+ raw "archive.zip"
end
Fabricator(:post_with_unsized_images, from: :post) do
diff --git a/spec/lib/plugin/instance_spec.rb b/spec/lib/plugin/instance_spec.rb
index dd9f4464e09..60485e36d60 100644
--- a/spec/lib/plugin/instance_spec.rb
+++ b/spec/lib/plugin/instance_spec.rb
@@ -40,7 +40,7 @@ TEXT
end
it "the plugin name the plugin site settings are still under the generic plugins: category" do
- plugin_instance.stubs(:setting_catgory).returns("plugins")
+ plugin_instance.stubs(:setting_category).returns("plugins")
expect(plugin_instance.humanized_name).to eq("sample-plugin")
end
diff --git a/spec/models/post_spec.rb b/spec/models/post_spec.rb
index 47428f10b53..1e434f06d57 100644
--- a/spec/models/post_spec.rb
+++ b/spec/models/post_spec.rb
@@ -716,7 +716,7 @@ RSpec.describe Post do
SiteSetting.max_mentions_per_post = 1
end
- it "allows vmax_mentions_per_post mentions" do
+ it "allows max_mentions_per_post mentions" do
post_with_one_mention.user.trust_level = TrustLevel[1]
expect(post_with_one_mention).to be_valid
end
diff --git a/spec/requests/categories_controller_spec.rb b/spec/requests/categories_controller_spec.rb
index 0b8fdf4c3a6..aa12a3b4b30 100644
--- a/spec/requests/categories_controller_spec.rb
+++ b/spec/requests/categories_controller_spec.rb
@@ -66,7 +66,7 @@ RSpec.describe CategoriesController do
)
end
- it "does not returns subcatgories without permission" do
+ it "does not returns subcategories without permission" do
subcategory = Fabricate(:category, user: admin, parent_category: category)
subcategory.set_permissions(admins: :full)
subcategory.save!
diff --git a/spec/system/topic_page_spec.rb b/spec/system/topic_page_spec.rb
index 600f20d8dba..b8325c3b38a 100644
--- a/spec/system/topic_page_spec.rb
+++ b/spec/system/topic_page_spec.rb
@@ -61,7 +61,7 @@ describe "Topic page", type: :system do
sign_in Fabricate(:admin)
end
- it "displays the gap to admins, and alows them to expand it" do
+ it "displays the gap to admins, and allows them to expand it" do
visit "/t/#{topic.slug}/#{topic.id}"
expect(page).to have_css(".topic-post", count: 2)