mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 20:36:39 +08:00
DEV: Fix random typos (#29161)
This commit is contained in:
parent
909264ee75
commit
8105b545c3
|
@ -148,7 +148,7 @@ acceptance("Admin - Watched Words", function (needs) {
|
|||
assert.dom(".d-modal__body li .tag").hasText("greeting");
|
||||
});
|
||||
|
||||
test("showing/hidding words - tag", async function (assert) {
|
||||
test("showing/hiding words - tag", async function (assert) {
|
||||
await visit("/admin/customize/watched_words/action/tag");
|
||||
|
||||
await click(".show-words-checkbox");
|
||||
|
|
|
@ -218,7 +218,7 @@ acceptance(
|
|||
);
|
||||
|
||||
acceptance(
|
||||
"Managing Group Email Settings - SMTP and IMAP Enabled - Settings Preflled",
|
||||
"Managing Group Email Settings - SMTP and IMAP Enabled - Settings Prefilled",
|
||||
function (needs) {
|
||||
needs.user();
|
||||
needs.settings({ enable_smtp: true, enable_imap: true });
|
||||
|
|
|
@ -745,7 +745,7 @@ acceptance("Sidebar - Logged on user - Categories Section", function (needs) {
|
|||
);
|
||||
});
|
||||
|
||||
test("visiting category discovery no subcategoriees route", async function (assert) {
|
||||
test("visiting category discovery no subcategories route", async function (assert) {
|
||||
const { category1 } = setupUserSidebarCategories();
|
||||
|
||||
await visit(`/c/${category1.slug}/${category1.id}/none`);
|
||||
|
|
|
@ -12,8 +12,8 @@ class CategoryList
|
|||
attr_accessor :categories, :uncategorized
|
||||
|
||||
def self.register_included_association(association)
|
||||
@included_assocations ||= []
|
||||
@included_assocations << association if !@included_assocations.include?(association)
|
||||
@included_associations ||= []
|
||||
@included_associations << association if !@included_associations.include?(association)
|
||||
end
|
||||
|
||||
def self.included_associations
|
||||
|
@ -24,7 +24,7 @@ class CategoryList
|
|||
:uploaded_logo_dark,
|
||||
:topic_only_relative_url,
|
||||
subcategories: [:topic_only_relative_url],
|
||||
].concat(@included_assocations || [])
|
||||
].concat(@included_associations || [])
|
||||
end
|
||||
|
||||
def initialize(guardian = nil, options = {})
|
||||
|
|
|
@ -162,7 +162,7 @@ RSpec.describe DiscourseRedis do
|
|||
end
|
||||
|
||||
describe "#eval" do
|
||||
it "keys and arvg are passed correcty" do
|
||||
it "keys and argv are passed correctly" do
|
||||
keys = %w[key1 key2]
|
||||
argv = %w[arg1 arg2]
|
||||
|
||||
|
@ -177,7 +177,7 @@ RSpec.describe DiscourseRedis do
|
|||
end
|
||||
|
||||
describe "#evalsha" do
|
||||
it "keys and arvg are passed correcty" do
|
||||
it "keys and argv are passed correctly" do
|
||||
keys = %w[key1 key2]
|
||||
argv = %w[arg1 arg2]
|
||||
|
||||
|
|
|
@ -48,14 +48,14 @@ RSpec.describe Discourse do
|
|||
context "with a non standard port specified" do
|
||||
before { SiteSetting.port = 3000 }
|
||||
|
||||
it "returns the non standart port in the base url" do
|
||||
it "returns the non standard port in the base url" do
|
||||
expect(Discourse.base_url).to eq("http://foo.com:3000")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe "asset_filter_options" do
|
||||
it "obmits path if request is missing" do
|
||||
it "omits path if request is missing" do
|
||||
opts = Discourse.asset_filter_options(:js, nil)
|
||||
expect(opts[:path]).to be_blank
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user