mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 02:48:28 +08:00
DEV: Correct typos and spelling mistakes (#12812)
Over the years we accrued many spelling mistakes in the code base. This PR attempts to fix spelling mistakes and typos in all areas of the code that are extremely safe to change - comments - test descriptions - other low risk areas
This commit is contained in:
@ -34,9 +34,9 @@ describe BackupRestore::MetaDataHandler do
|
||||
end
|
||||
|
||||
it "raises an exception when the metadata file contains invalid JSON" do
|
||||
currupt_metadata = '{"version":20160329101122'
|
||||
corrupt_metadata = '{"version":20160329101122'
|
||||
|
||||
with_metadata_file(currupt_metadata) do |dir|
|
||||
with_metadata_file(corrupt_metadata) do |dir|
|
||||
expect { validate_metadata(backup_filename, dir) }
|
||||
.to raise_error(BackupRestore::MetaDataError)
|
||||
end
|
||||
|
@ -266,7 +266,7 @@ shared_examples "remote backup store" do
|
||||
expect(url).to match(upload_url_regex("default", filename, multisite: false))
|
||||
end
|
||||
|
||||
it "raises an exeption when a file with same filename exists" do
|
||||
it "raises an exception when a file with same filename exists" do
|
||||
expect { store.generate_upload_url(backup1.filename) }
|
||||
.to raise_exception(BackupRestore::BackupStore::BackupFileExists)
|
||||
end
|
||||
|
@ -109,7 +109,7 @@ RSpec.describe BookmarkManager do
|
||||
end
|
||||
end
|
||||
|
||||
context "when the post is inaccessable for the user" do
|
||||
context "when the post is inaccessible for the user" do
|
||||
before do
|
||||
post.trash!
|
||||
end
|
||||
@ -118,7 +118,7 @@ RSpec.describe BookmarkManager do
|
||||
end
|
||||
end
|
||||
|
||||
context "when the topic is inaccessable for the user" do
|
||||
context "when the topic is inaccessible for the user" do
|
||||
before do
|
||||
post.topic.update(category: Fabricate(:private_category, group: Fabricate(:group)))
|
||||
end
|
||||
@ -182,7 +182,7 @@ RSpec.describe BookmarkManager do
|
||||
)
|
||||
end
|
||||
|
||||
it "saves the time and new reminder type and new name sucessfully" do
|
||||
it "saves the time and new reminder type and new name successfully" do
|
||||
update_bookmark
|
||||
bookmark.reload
|
||||
expect(bookmark.name).to eq(new_name)
|
||||
|
@ -15,7 +15,7 @@ describe Webauthn::ChallengeGenerator do
|
||||
describe "#commit_to_session" do
|
||||
let(:user) { Fabricate(:user) }
|
||||
|
||||
it "stores the challenge, rpid, and name in the provided session object" do
|
||||
it "stores the challenge, rp id, and rp name in the provided session object" do
|
||||
secure_session = {}
|
||||
generated_session = Webauthn::ChallengeGenerator.generate
|
||||
generated_session.commit_to_session(secure_session, user)
|
||||
|
Reference in New Issue
Block a user