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:
Josh Soref
2021-05-20 21:43:47 -04:00
committed by GitHub
parent 6421fabb02
commit 59097b207f
207 changed files with 315 additions and 315 deletions

View File

@@ -495,7 +495,7 @@ RSpec.describe SessionController do
expect(session[:current_user_id]).to be_blank
end
it "works in developmenet mode" do
it "works in development mode" do
Rails.env.stubs(:development?).returns(true)
get "/session/#{user.username}/become.json"
expect(response).to be_redirect
@@ -543,7 +543,7 @@ RSpec.describe SessionController do
sso
end
it 'does not create superflous auth tokens when already logged in' do
it 'does not create superfluous auth tokens when already logged in' do
user = Fabricate(:user)
sign_in(user)
@@ -2188,7 +2188,7 @@ RSpec.describe SessionController do
describe '#current' do
context "when not logged in" do
it "retuns 404" do
it "returns 404" do
get "/session/current.json"
expect(response.status).to eq(404)
end