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");
|
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 visit("/admin/customize/watched_words/action/tag");
|
||||||
|
|
||||||
await click(".show-words-checkbox");
|
await click(".show-words-checkbox");
|
||||||
|
|
|
@ -218,7 +218,7 @@ acceptance(
|
||||||
);
|
);
|
||||||
|
|
||||||
acceptance(
|
acceptance(
|
||||||
"Managing Group Email Settings - SMTP and IMAP Enabled - Settings Preflled",
|
"Managing Group Email Settings - SMTP and IMAP Enabled - Settings Prefilled",
|
||||||
function (needs) {
|
function (needs) {
|
||||||
needs.user();
|
needs.user();
|
||||||
needs.settings({ enable_smtp: true, enable_imap: true });
|
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();
|
const { category1 } = setupUserSidebarCategories();
|
||||||
|
|
||||||
await visit(`/c/${category1.slug}/${category1.id}/none`);
|
await visit(`/c/${category1.slug}/${category1.id}/none`);
|
||||||
|
|
|
@ -12,8 +12,8 @@ class CategoryList
|
||||||
attr_accessor :categories, :uncategorized
|
attr_accessor :categories, :uncategorized
|
||||||
|
|
||||||
def self.register_included_association(association)
|
def self.register_included_association(association)
|
||||||
@included_assocations ||= []
|
@included_associations ||= []
|
||||||
@included_assocations << association if !@included_assocations.include?(association)
|
@included_associations << association if !@included_associations.include?(association)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.included_associations
|
def self.included_associations
|
||||||
|
@ -24,7 +24,7 @@ class CategoryList
|
||||||
:uploaded_logo_dark,
|
:uploaded_logo_dark,
|
||||||
:topic_only_relative_url,
|
:topic_only_relative_url,
|
||||||
subcategories: [:topic_only_relative_url],
|
subcategories: [:topic_only_relative_url],
|
||||||
].concat(@included_assocations || [])
|
].concat(@included_associations || [])
|
||||||
end
|
end
|
||||||
|
|
||||||
def initialize(guardian = nil, options = {})
|
def initialize(guardian = nil, options = {})
|
||||||
|
|
|
@ -162,7 +162,7 @@ RSpec.describe DiscourseRedis do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "#eval" do
|
describe "#eval" do
|
||||||
it "keys and arvg are passed correcty" do
|
it "keys and argv are passed correctly" do
|
||||||
keys = %w[key1 key2]
|
keys = %w[key1 key2]
|
||||||
argv = %w[arg1 arg2]
|
argv = %w[arg1 arg2]
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ RSpec.describe DiscourseRedis do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "#evalsha" do
|
describe "#evalsha" do
|
||||||
it "keys and arvg are passed correcty" do
|
it "keys and argv are passed correctly" do
|
||||||
keys = %w[key1 key2]
|
keys = %w[key1 key2]
|
||||||
argv = %w[arg1 arg2]
|
argv = %w[arg1 arg2]
|
||||||
|
|
||||||
|
|
|
@ -48,14 +48,14 @@ RSpec.describe Discourse do
|
||||||
context "with a non standard port specified" do
|
context "with a non standard port specified" do
|
||||||
before { SiteSetting.port = 3000 }
|
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")
|
expect(Discourse.base_url).to eq("http://foo.com:3000")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "asset_filter_options" do
|
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)
|
opts = Discourse.asset_filter_options(:js, nil)
|
||||||
expect(opts[:path]).to be_blank
|
expect(opts[:path]).to be_blank
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue