diff --git a/app/assets/javascripts/base.js.erb b/app/assets/javascripts/base.js.erb
index f33dbf96e..5d5722864 100644
--- a/app/assets/javascripts/base.js.erb
+++ b/app/assets/javascripts/base.js.erb
@@ -254,7 +254,7 @@ var instantClick
getImageForLink(a);
}
- // If a link is focused, it is preloaded just like on mousover.
+ // If a link is focused, it is preloaded just like on mouseover.
// It also covers the issue where a user needs to press
// twice in order to follow a focused link.
function focusListener(e) {
diff --git a/app/assets/javascripts/initializers/initScrolling.js b/app/assets/javascripts/initializers/initScrolling.js
index 96b5908d2..352fe4f91 100644
--- a/app/assets/javascripts/initializers/initScrolling.js
+++ b/app/assets/javascripts/initializers/initScrolling.js
@@ -300,7 +300,7 @@ function paginate(tag, params, requiresApproval) {
searchHash.sort_by = 'public_reactions_count';
}
- // Brute force copying code from a utlity for quick fix
+ // Brute force copying code from a utility for quick fix
const searchParams = new URLSearchParams();
Object.keys(searchHash).forEach((key) => {
const value = searchHash[key];
diff --git a/app/assets/javascripts/initializers/initializePodcastPlayback.js b/app/assets/javascripts/initializers/initializePodcastPlayback.js
index 91630e7b6..41b3e3eea 100644
--- a/app/assets/javascripts/initializers/initializePodcastPlayback.js
+++ b/app/assets/javascripts/initializers/initializePodcastPlayback.js
@@ -1,5 +1,5 @@
/**
- * This script hunts for podcast's "Record" for both the podcast_episde's
+ * This script hunts for podcast's "Record" for both the podcast_episode's
* show page and an article page containing podcast liquid tag. It handles
* playback and makes sure the record will spin when the podcast is currently
* playing.
diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss
index a1ca3f78c..4615d8852 100644
--- a/app/assets/stylesheets/admin.scss
+++ b/app/assets/stylesheets/admin.scss
@@ -205,7 +205,7 @@ label {
.admin__tabbed-navbar,
.admin__left-sidebar {
// Navbar links have text-decorations that are being
- // rendered from boostrap. We want to remove these to be
+ // rendered from bootstrap. We want to remove these to be
// consistent with links in the crayons design system.
.crayons-link,
.crayons-tabs__item {
diff --git a/app/assets/stylesheets/config/_variables.scss b/app/assets/stylesheets/config/_variables.scss
index 1a6c4d997..18b9ed5f0 100644
--- a/app/assets/stylesheets/config/_variables.scss
+++ b/app/assets/stylesheets/config/_variables.scss
@@ -3,7 +3,7 @@
// Sizes. //////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////
//
- // The reason why header height is set here instead of caluclating it based on its
+ // The reason why header height is set here instead of calculating it based on its
// content is because header is sometimes fixed and we need to offset page content
// by specific value... And that's the value.
diff --git a/app/assets/stylesheets/onboarding.scss b/app/assets/stylesheets/onboarding.scss
index 061d190db..748dc495e 100644
--- a/app/assets/stylesheets/onboarding.scss
+++ b/app/assets/stylesheets/onboarding.scss
@@ -64,7 +64,7 @@
}
.close {
- // Overide standard button layout
+ // Override standard button layout
background: none;
border: none;
diff --git a/app/assets/stylesheets/views/listings.scss b/app/assets/stylesheets/views/listings.scss
index cfa3bcef8..7a3cd32b4 100644
--- a/app/assets/stylesheets/views/listings.scss
+++ b/app/assets/stylesheets/views/listings.scss
@@ -44,7 +44,7 @@
// New/Edit Listing form
// Tags dropdown
-// TODO: componetize styling..
+// TODO: componentize styling..
.listingform {
&__tagsoptions {
diff --git a/app/controllers/github_repos_controller.rb b/app/controllers/github_repos_controller.rb
index 3a7a8361f..1a68fcc13 100644
--- a/app/controllers/github_repos_controller.rb
+++ b/app/controllers/github_repos_controller.rb
@@ -48,7 +48,7 @@ class GithubReposController < ApplicationController
repo
end
- # Remove pinned repositorioes that were removed from GH or are now private,
+ # Remove pinned repositories that were removed from GH or are now private,
# since the user will not be able to remove them by themselves.
known_repositories.each(&:destroy)
diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb
index 155d8f808..f229e8f6a 100644
--- a/app/controllers/search_controller.rb
+++ b/app/controllers/search_controller.rb
@@ -140,7 +140,7 @@ class SearchController < ApplicationController
end
def reactions
- # [@rhymes] we're recyling the existing params as we want to change the frontend as
+ # [@rhymes] we're recycling the existing params as we want to change the frontend as
# little as possible, we might simplify in the future
result = Search::ReadingList.search_documents(
current_user,
diff --git a/app/controllers/sitemaps_controller.rb b/app/controllers/sitemaps_controller.rb
index 59e34f39a..393e894fc 100644
--- a/app/controllers/sitemaps_controller.rb
+++ b/app/controllers/sitemaps_controller.rb
@@ -85,6 +85,6 @@ class SitemapsController < ApplicationController
end
def offset
- params[:sitemap].split("-")[2].to_i * RESULTS_LIMIT # elvaluates to 0 if not present or not a number
+ params[:sitemap].split("-")[2].to_i * RESULTS_LIMIT # evaluates to 0 if not present or not a number
end
end
diff --git a/app/javascript/admin/controllers/creator_settings_controller.js b/app/javascript/admin/controllers/creator_settings_controller.js
index 1f65390c7..d8c58499e 100644
--- a/app/javascript/admin/controllers/creator_settings_controller.js
+++ b/app/javascript/admin/controllers/creator_settings_controller.js
@@ -95,7 +95,7 @@ export class CreatorSettingsController extends Controller {
/**
* Updates ths branding/colors on the Creator Settings Page.
- * by overridding the accent-color in the :root object
+ * by overriding the accent-color in the :root object
*
* @param {String} color
*/
diff --git a/app/javascript/article-form/articleForm.jsx b/app/javascript/article-form/articleForm.jsx
index 52ef7eeef..13e38e3ab 100644
--- a/app/javascript/article-form/articleForm.jsx
+++ b/app/javascript/article-form/articleForm.jsx
@@ -307,8 +307,8 @@ export class ArticleForm extends Component {
this.setState({
// When the formKey prop changes, it causes the component to recreate the DOM nodes that it manages.
- // This permits us to reset the defaultValue for the MentionAutcompleteTextArea component without having to change
- // MentionAutcompleteTextArea component's implementation.
+ // This permits us to reset the defaultValue for the MentionAutocompleteTextArea component without having to change
+ // MentionAutocompleteTextArea component's implementation.
formKey: new Date().toISOString(),
title: this.article.title || '',
tagList: this.article.cached_tag_list || '',
diff --git a/app/javascript/article-form/components/__tests__/ImageUploader.test.jsx b/app/javascript/article-form/components/__tests__/ImageUploader.test.jsx
index 11cdc85a5..f5c566438 100644
--- a/app/javascript/article-form/components/__tests__/ImageUploader.test.jsx
+++ b/app/javascript/article-form/components/__tests__/ImageUploader.test.jsx
@@ -117,7 +117,7 @@ describe('', () => {
expect(await findByText(/uploading.../i)).not.toBeNull();
- // Upload is finished, so the messsage has disappeared.
+ // Upload is finished, so the message has disappeared.
expect(queryByText(/uploading.../i)).toBeNull();
await findByText(/some fake error/i);
diff --git a/app/javascript/crayons/Button/__tests__/Button.test.jsx b/app/javascript/crayons/Button/__tests__/Button.test.jsx
index 7a019e70b..b4adf5736 100644
--- a/app/javascript/crayons/Button/__tests__/Button.test.jsx
+++ b/app/javascript/crayons/Button/__tests__/Button.test.jsx
@@ -52,7 +52,7 @@ describe(' component', () => {
expect(container.innerHTML).toMatchSnapshot();
});
- it('should render a button with addtional CSS classes when className is set', () => {
+ it('should render a button with additional CSS classes when className is set', () => {
const { container } = render(
",
tag_list: %w[x y z],
organization_id: nil,
bumped_at: datetime,
diff --git a/spec/liquid_tags/stackexchange_tag_spec.rb b/spec/liquid_tags/stackexchange_tag_spec.rb
index 220b0f07f..1680e3c75 100644
--- a/spec/liquid_tags/stackexchange_tag_spec.rb
+++ b/spec/liquid_tags/stackexchange_tag_spec.rb
@@ -42,7 +42,7 @@ RSpec.describe StackexchangeTag, type: :liquid_tag, vcr: true do
end.to raise_error(StandardError)
end
- it "does not break with volountarily removed questions" do
+ it "does not break with voluntarily removed questions" do
VCR.use_cassette("stackexchange_tag_deleted_question") do
expect do
liquid = generate_exchange_liquid(valid_id_deleted_question)
diff --git a/spec/liquid_tags/twitter_timeline_tag_spec.rb b/spec/liquid_tags/twitter_timeline_tag_spec.rb
index 982390961..0c763739a 100644
--- a/spec/liquid_tags/twitter_timeline_tag_spec.rb
+++ b/spec/liquid_tags/twitter_timeline_tag_spec.rb
@@ -21,7 +21,7 @@ RSpec.describe TwitterTimelineTag, type: :lyquid_tag do
Liquid::Template.parse("{% twitter_timeline #{link} %}")
end
- it "accepts a vaild link" do
+ it "accepts a valid link" do
valid_twitter_timeline_links.each do |valid_link|
liquid = generate_new_liquid(valid_link)
expect(liquid.render).to include("')
end
- it "sets canonical url with prefil" do
+ it "sets canonical url with prefill" do
get "/new?prefill=dsdweewewew"
expect(response.body).to include('')
end
diff --git a/spec/requests/dashboard_spec.rb b/spec/requests/dashboard_spec.rb
index a771db6dd..219654992 100644
--- a/spec/requests/dashboard_spec.rb
+++ b/spec/requests/dashboard_spec.rb
@@ -355,9 +355,9 @@ RSpec.describe "Dashboards", type: :request do
end
it "raises an error when the source can't be found" do
- nonexistant_article_params = { source_type: article.class.name, source_id: article.id + 999 }
+ nonexistent_article_params = { source_type: article.class.name, source_id: article.id + 999 }
expect do
- get "/dashboard/subscriptions", params: nonexistant_article_params
+ get "/dashboard/subscriptions", params: nonexistent_article_params
end.to raise_error(ActiveRecord::RecordNotFound)
end
diff --git a/spec/requests/discussion_locks_spec.rb b/spec/requests/discussion_locks_spec.rb
index b2edaaf16..024c26ec5 100644
--- a/spec/requests/discussion_locks_spec.rb
+++ b/spec/requests/discussion_locks_spec.rb
@@ -9,7 +9,7 @@ RSpec.describe "DiscussionLocks", type: :request do
describe "POST /discussion_locks - DiscussionLocks#create" do
it "creates a DiscussionLock" do
article = create(:article, user: user)
- reason = "Unproductice comments."
+ reason = "Unproductive comments."
notes = "Hostile comment from user @user"
valid_attributes = { article_id: article.id, locking_user_id: user.id, notes: notes, reason: reason }
expect do
@@ -50,7 +50,7 @@ RSpec.describe "DiscussionLocks", type: :request do
sign_out user
sign_in other_user
- reason = "Unproductice comments."
+ reason = "Unproductive comments."
notes = "Hostile comment from user @user"
valid_attributes = { article_id: article.id, locking_user_id: other_user.id, notes: notes, reason: reason }
expect do
diff --git a/spec/requests/follows_bulk_show_spec.rb b/spec/requests/follows_bulk_show_spec.rb
index 1e68e6528..bbc7bf899 100644
--- a/spec/requests/follows_bulk_show_spec.rb
+++ b/spec/requests/follows_bulk_show_spec.rb
@@ -5,26 +5,26 @@ RSpec.describe "Follows #bulk_show", type: :request do
let(:followed_user) { create(:user) }
let(:not_followed_user) { create(:user) }
let(:follow_back_user) { create(:user) }
- let(:mutal_follow_user) { create(:user) }
+ let(:mutual_follow_user) { create(:user) }
context "when ids are present" do
before do
sign_in current_user
current_user.follow(followed_user)
- current_user.follow(mutal_follow_user)
+ current_user.follow(mutual_follow_user)
follow_back_user.follow(current_user)
- mutal_follow_user.follow(current_user)
+ mutual_follow_user.follow(current_user)
end
it "returns correct following values" do
- ids = [followed_user.id, not_followed_user.id, current_user.id, follow_back_user.id, mutal_follow_user.id]
+ ids = [followed_user.id, not_followed_user.id, current_user.id, follow_back_user.id, mutual_follow_user.id]
get bulk_show_follows_path, params: { ids: ids }
expect(response.parsed_body[current_user.id.to_s]).to eq("self")
expect(response.parsed_body[followed_user.id.to_s]).to eq("true")
expect(response.parsed_body[not_followed_user.id.to_s]).to eq("false")
expect(response.parsed_body[follow_back_user.id.to_s]).to eq("follow-back")
- expect(response.parsed_body[mutal_follow_user.id.to_s]).to eq("mutual")
+ expect(response.parsed_body[mutual_follow_user.id.to_s]).to eq("mutual")
end
end
diff --git a/spec/requests/moderations_spec.rb b/spec/requests/moderations_spec.rb
index 6f37d5f26..308343c1b 100644
--- a/spec/requests/moderations_spec.rb
+++ b/spec/requests/moderations_spec.rb
@@ -15,7 +15,7 @@ RSpec.shared_examples "an elevated privilege required request" do |path|
context "when user is not trusted" do
before { sign_in create(:user) }
- it "does not grant acesss", proper_status: true do
+ it "does not grant access", proper_status: true do
get path
expect(response).to have_http_status(:not_found)
end
diff --git a/spec/requests/registrations_spec.rb b/spec/requests/registrations_spec.rb
index 8b52dcf2e..bbf0c556f 100644
--- a/spec/requests/registrations_spec.rb
+++ b/spec/requests/registrations_spec.rb
@@ -231,7 +231,7 @@ RSpec.describe "Registrations", type: :request do
expect(User.all.size).to be 1
end
- it "marks as registerd" do
+ it "marks as registered" do
post "/users", params:
{ user: { name: "test #{rand(10)}",
username: "haha_#{rand(10)}",
diff --git a/spec/requests/user/user_settings_spec.rb b/spec/requests/user/user_settings_spec.rb
index e94ebc308..4bc5f0337 100644
--- a/spec/requests/user/user_settings_spec.rb
+++ b/spec/requests/user/user_settings_spec.rb
@@ -53,7 +53,7 @@ RSpec.describe "UserSettings", type: :request do
expect(response.body).to include("Email notifications", "Mobile notifications", "General notifications")
end
- it "displays moderator notifications secons on Notifications tab if trusted" do
+ it "displays moderator notifications second on Notifications tab if trusted" do
user.add_role(:trusted)
get user_settings_path(:notifications)
diff --git a/spec/services/articles/feeds/large_forem_experimental_spec.rb b/spec/services/articles/feeds/large_forem_experimental_spec.rb
index 13966db03..b3fa168ac 100644
--- a/spec/services/articles/feeds/large_forem_experimental_spec.rb
+++ b/spec/services/articles/feeds/large_forem_experimental_spec.rb
@@ -171,7 +171,7 @@ RSpec.describe Articles::Feeds::LargeForemExperimental, type: :service do
end
# This test handles a situation in which there are a low number of hot or new stories, and the user is logged in.
- # Previously the offest factor could result in zero stories being returned sometimes.
+ # Previously the offset factor could result in zero stories being returned sometimes.
# We manually called `feed.globally_hot_articles` here because `let` caches it!
it "still returns articles" do
diff --git a/spec/services/articles/feeds/latest_spec.rb b/spec/services/articles/feeds/latest_spec.rb
index ce94aee35..019b45a7c 100644
--- a/spec/services/articles/feeds/latest_spec.rb
+++ b/spec/services/articles/feeds/latest_spec.rb
@@ -13,7 +13,7 @@ RSpec.describe Articles::Feeds::Latest, type: :service do
expect(result).to eq [newest_article, hot_article, month_old_article]
end
- it "only returns articles with scores above the minumum" do
+ it "only returns articles with scores above the minimum" do
expect(described_class.call).not_to include(low_scoring_article)
end
end
diff --git a/spec/services/authentication/authenticator_spec.rb b/spec/services/authentication/authenticator_spec.rb
index 67cc8c0c6..471aaaa5d 100644
--- a/spec/services/authentication/authenticator_spec.rb
+++ b/spec/services/authentication/authenticator_spec.rb
@@ -202,12 +202,12 @@ RSpec.describe Authentication::Authenticator, type: :service do
end
it "does not update the username when the first_name is nil" do
- previos_username = user.apple_username
+ previous_username = user.apple_username
auth_payload.info.first_name = nil
user = described_class.call(auth_payload)
- expect(user.apple_username).to eq(previos_username)
+ expect(user.apple_username).to eq(previous_username)
end
it "updates profile_updated_at when the username is changed" do
diff --git a/spec/services/color/compare_hex_spec.rb b/spec/services/color/compare_hex_spec.rb
index 45e134b44..559aabd42 100644
--- a/spec/services/color/compare_hex_spec.rb
+++ b/spec/services/color/compare_hex_spec.rb
@@ -38,7 +38,7 @@ RSpec.describe Color::CompareHex, type: :service do
expect(hc.accent).to eq("#d8eafc")
end
- it "generates an rgba value with opactity" do
+ it "generates an rgba value with opacity" do
rgba = described_class.new(["#123456"]).opacity(0.5)
expect(rgba).to eq("rgba(18, 52, 86, 0.50)")
end
diff --git a/spec/services/podcasts/get_media_url_spec.rb b/spec/services/podcasts/get_media_url_spec.rb
index 83fe177c6..dfa22940b 100644
--- a/spec/services/podcasts/get_media_url_spec.rb
+++ b/spec/services/podcasts/get_media_url_spec.rb
@@ -21,7 +21,7 @@ RSpec.describe Podcasts::GetMediaUrl, type: :service do
expect(result.url).to eq(url)
end
- it "https, unrechable" do
+ it "https, unreachable" do
stub_request(:head, https_url).to_return(status: 404)
result = described_class.call(https_url)
expect(result.https).to be true
diff --git a/spec/services/re_captcha/check_enabled_spec.rb b/spec/services/re_captcha/check_enabled_spec.rb
index 8695a0d1d..0890c4f7c 100644
--- a/spec/services/re_captcha/check_enabled_spec.rb
+++ b/spec/services/re_captcha/check_enabled_spec.rb
@@ -5,7 +5,7 @@ RSpec.describe ReCaptcha::CheckEnabled, type: :request do
let(:recent_user) { create(:user) }
let(:older_user) { create(:user, created_at: 3.months.ago) }
let(:trusted_user) { create(:user, :trusted) }
- let(:vomitted_user) do
+ let(:vomited_user) do
user = create(:user, created_at: 3.months.ago)
create(:vomit_reaction, category: "vomit", reactable: user, user: trusted_user, status: "confirmed")
user
@@ -48,8 +48,8 @@ RSpec.describe ReCaptcha::CheckEnabled, type: :request do
end
it "marks ReCaptcha as enabled when user with vomits is logged in" do
- sign_in vomitted_user
- expect(described_class.call(vomitted_user)).to be(true)
+ sign_in vomited_user
+ expect(described_class.call(vomited_user)).to be(true)
end
it "marks ReCaptcha as enabled when a suspended user is logged in" do
diff --git a/spec/services/users/update_spec.rb b/spec/services/users/update_spec.rb
index 6ddf135bd..ae4555312 100644
--- a/spec/services/users/update_spec.rb
+++ b/spec/services/users/update_spec.rb
@@ -26,7 +26,7 @@ RSpec.describe Users::Update, type: :service do
end.to change { profile.data.key?("removed") }.to(false)
end
- it "propagates changes to user", :agregate_failures do
+ it "propagates changes to user", :aggregate_failures do
new_name = "Sloan Doe"
described_class.call(user, profile: {}, user: { name: new_name })
expect(profile.user.name).to eq new_name
diff --git a/spec/support/fixtures/sample_article_template_spec.txt b/spec/support/fixtures/sample_article_template_spec.txt
index acd5105c5..818eb6135 100644
--- a/spec/support/fixtures/sample_article_template_spec.txt
+++ b/spec/support/fixtures/sample_article_template_spec.txt
@@ -35,7 +35,7 @@ Format: 
* TEST1
* TEST1.1
* TEST1.1.1
- * TESET1.1.3
+ * TEST1.1.3
2. **Line break in ul/ol spacing test 2**
* ITEM 1
diff --git a/spec/support/fixtures/vcr_cassettes/github_client_issue.yml b/spec/support/fixtures/vcr_cassettes/github_client_issue.yml
index 1bf388c3f..0552dacf9 100644
--- a/spec/support/fixtures/vcr_cassettes/github_client_issue.yml
+++ b/spec/support/fixtures/vcr_cassettes/github_client_issue.yml
@@ -81,7 +81,7 @@ http_interactions:
properly when the colours are related.\r\n\r\nSee the pictures below or visit
my profile [dev.to/catalinmpit](https://dev.to/catalinmpit).\r\n\r\n**To Reproduce**\r\n\r\n1.
Go to [dev.to/catalinmpit](https://dev.to/catalinmpit)\r\n\r\n**Expected behavior**\r\n\r\nMy
- name and other information should be visible.\r\n\r\n**Screenshots**\r\n\r\n\r\n\r\n**Aditional
+ name and other information should be visible.\r\n\r\n**Screenshots**\r\n\r\n\r\n\r\n**Additional
information**\r\n\r\nPlayed around with the settings and I''ve done this:\r\n\r\n\r\n\r\n**Question**\r\n\r\nWhat
do you recommend to fix the issue? If you have any recommendations, I''m happy
to pick the issue.\r\n","closed_by":null}'
@@ -97,7 +97,7 @@ http_interactions:
when the profile page doesn''t work properly when the colours are related.\r\n\r\nSee
the pictures below or visit my profile [dev.to/catalinmpit](https://dev.to/catalinmpit).\r\n\r\n**To
Reproduce**\r\n\r\n1. Go to [dev.to/catalinmpit](https://dev.to/catalinmpit)\r\n\r\n**Expected
- behavior**\r\n\r\nMy name and other information should be visible.\r\n\r\n**Screenshots**\r\n\r\n\r\n\r\n**Aditional
+ behavior**\r\n\r\nMy name and other information should be visible.\r\n\r\n**Screenshots**\r\n\r\n\r\n\r\n**Additional
information**\r\n\r\nPlayed around with the settings and I''ve done this:\r\n\r\n\r\n\r\n**Question**\r\n\r\nWhat
do you recommend to fix the issue? If you have any recommendations, I''m happy
to pick the issue.\r\n"}'
@@ -172,7 +172,7 @@ http_interactions:
My name and other information should be visible.
Screenshots
-
Aditional information
+
Additional information
Played around with the settings and I've done this:
Question
diff --git a/spec/support/fixtures/vcr_cassettes/github_client_issue_access_token.yml b/spec/support/fixtures/vcr_cassettes/github_client_issue_access_token.yml
index a7b71e8a4..a85b78200 100644
--- a/spec/support/fixtures/vcr_cassettes/github_client_issue_access_token.yml
+++ b/spec/support/fixtures/vcr_cassettes/github_client_issue_access_token.yml
@@ -87,7 +87,7 @@ http_interactions:
properly when the colours are related.\r\n\r\nSee the pictures below or visit
my profile [dev.to/catalinmpit](https://dev.to/catalinmpit).\r\n\r\n**To Reproduce**\r\n\r\n1.
Go to [dev.to/catalinmpit](https://dev.to/catalinmpit)\r\n\r\n**Expected behavior**\r\n\r\nMy
- name and other information should be visible.\r\n\r\n**Screenshots**\r\n\r\n\r\n\r\n**Aditional
+ name and other information should be visible.\r\n\r\n**Screenshots**\r\n\r\n\r\n\r\n**Additional
information**\r\n\r\nPlayed around with the settings and I''ve done this:\r\n\r\n\r\n\r\n**Question**\r\n\r\nWhat
do you recommend to fix the issue? If you have any recommendations, I''m happy
to pick the issue.\r\n","closed_by":null}'
diff --git a/spec/support/fixtures/vcr_cassettes/reddit_liquid_tag.yml b/spec/support/fixtures/vcr_cassettes/reddit_liquid_tag.yml
index 8ec9a6990..5ee65cbbe 100644
--- a/spec/support/fixtures/vcr_cassettes/reddit_liquid_tag.yml
+++ b/spec/support/fixtures/vcr_cassettes/reddit_liquid_tag.yml
@@ -3679,12 +3679,12 @@ http_interactions:
false, "author": "cruzweb", "can_mod_post": false, "created_utc": 1547475284.0,
"send_replies": true, "parent_id": "t1_ee1min0", "score": 63, "author_fullname":
"t2_342dz", "report_reasons": null, "approved_by": null, "all_awardings":
- [], "subreddit_id": "t5_2qzb6", "body": "Thank you so much for the well throught-out
+ [], "subreddit_id": "t5_2qzb6", "body": "Thank you so much for the well thought-out
answer, definitely gives me a lot to consider as we look to book adventures
this year! ", "edited": false, "author_flair_css_class": null, "is_submitter":
false, "downs": 0, "author_flair_richtext": [], "author_patreon_flair": false,
"body_html": "<div class=\"md\"><p>Thank you so much for the well
- throught-out answer, definitely gives me a lot to consider as we look to book
+ thought-out answer, definitely gives me a lot to consider as we look to book
adventures this year! </p>\n</div>", "gildings": {}, "collapsed_reason":
null, "associated_award": null, "stickied": false, "author_premium": false,
"subreddit_type": "public", "can_gild": true, "top_awarded_type": null, "author_flair_text_color":
diff --git a/spec/support/shared_examples/api_analytics.rb b/spec/support/shared_examples/api_analytics.rb
index d891b2971..0cbf55b93 100644
--- a/spec/support/shared_examples/api_analytics.rb
+++ b/spec/support/shared_examples/api_analytics.rb
@@ -86,7 +86,7 @@ RSpec.shared_examples "GET /api/analytics/:endpoint authorization examples" do |
end
end
- context "when viewing your own organizaiton's single article's analytics" do
+ context "when viewing your own organization's single article's analytics" do
it "responds with status 200 OK" do
org_param = "&organization_id=#{org_article.organization.id}"
diff --git a/spec/system/admin/admin_bans_or_warns_user_spec.rb b/spec/system/admin/admin_bans_or_warns_user_spec.rb
index 2fa3547e7..b607034b3 100644
--- a/spec/system/admin/admin_bans_or_warns_user_spec.rb
+++ b/spec/system/admin/admin_bans_or_warns_user_spec.rb
@@ -63,7 +63,7 @@ RSpec.describe "Admin bans user", type: :system do
expect(user.suspended?).to eq(true)
expect(user.trusted).to eq(false)
expect(user.warned?).to eq(false)
- expect(user.has_role?(:tag_modertor)).to eq(false)
+ expect(user.has_role?(:tag_moderator)).to eq(false)
end
it "unsuspends user" do
diff --git a/spec/system/admin/admin_manages_pages_spec.rb b/spec/system/admin/admin_manages_pages_spec.rb
index 3e2245842..6a9ff7da8 100644
--- a/spec/system/admin/admin_manages_pages_spec.rb
+++ b/spec/system/admin/admin_manages_pages_spec.rb
@@ -100,11 +100,11 @@ RSpec.describe "Admin manages pages", type: :system do
visit admin_pages_path
end
- it "shows the notice that the defaults have been overriden" do
+ it "shows the notice that the defaults have been overridden" do
expect(page).to have_content("You will no longer receive updates on these pages from the Forem team")
end
- it "shows the overriden pages in the pages table" do
+ it "shows the overridden pages in the pages table" do
within(".pages__table") do
expect(page).to have_content("Terms of Use")
expect(page).to have_content("Code of Conduct")
diff --git a/spec/system/admin/admin_updates_tag_spec.rb b/spec/system/admin/admin_updates_tag_spec.rb
index ed51b4ac2..7e2ee9805 100644
--- a/spec/system/admin/admin_updates_tag_spec.rb
+++ b/spec/system/admin/admin_updates_tag_spec.rb
@@ -5,7 +5,7 @@ RSpec.describe "Admin updates a tag", type: :system do
let(:bg_color_hex) { "#000000" }
let(:text_color_hex) { "#ffffff" }
- context "when no colors have been choosen for the tag" do
+ context "when no colors have been chosen for the tag" do
let(:tag) { create(:tag) }
before do
@@ -13,7 +13,7 @@ RSpec.describe "Admin updates a tag", type: :system do
visit edit_admin_tag_path(tag.id)
end
- it "allows an Admin to succesfully update a tag", :aggregate_failures do
+ it "allows an Admin to successfully update a tag", :aggregate_failures do
visit edit_admin_tag_path(tag.id)
expect(page).to have_content("Edit details")
check "Supported"
@@ -39,7 +39,7 @@ RSpec.describe "Admin updates a tag", type: :system do
end
end
- context "when colors have already been choosen for the tag" do
+ context "when colors have already been chosen for the tag" do
let(:tag) { create(:tag, bg_color_hex: "#0000ff", text_color_hex: "#ff0000") }
before do
diff --git a/spec/system/articles/moderator_moderates_an_article_spec.rb b/spec/system/articles/moderator_moderates_an_article_spec.rb
index d72930943..61f6b0129 100644
--- a/spec/system/articles/moderator_moderates_an_article_spec.rb
+++ b/spec/system/articles/moderator_moderates_an_article_spec.rb
@@ -27,8 +27,8 @@ RSpec.describe "Views an article", type: :system do
end
it "shows hidden comments on /mod" do
- commentor = create(:user)
- create(:comment, commentable: article, user: commentor, hidden_by_commentable_user: true)
+ commenter = create(:user)
+ create(:comment, commentable: article, user: commenter, hidden_by_commentable_user: true)
visit "/#{user.username}/#{article.slug}/mod"
expect(page).to have_content("Hidden Comments")
expect(page).to have_selector("ul#hidden-comments")
diff --git a/spec/system/authentication/user_logs_in_with_apple_spec.rb b/spec/system/authentication/user_logs_in_with_apple_spec.rb
index 11fb7c3e6..810b949e1 100644
--- a/spec/system/authentication/user_logs_in_with_apple_spec.rb
+++ b/spec/system/authentication/user_logs_in_with_apple_spec.rb
@@ -120,7 +120,7 @@ RSpec.describe "Authenticating with Apple", vcr: { cassette_name: "fastly_sloan"
end
end
- context "when a validation failure occurrs" do
+ context "when a validation failure occurs" do
before do
# A User is invalid if their name is more than 100 chars long
OmniAuth.config.mock_auth[:apple].info.first_name = "X" * 101
diff --git a/spec/system/authentication/user_logs_in_with_facebook_spec.rb b/spec/system/authentication/user_logs_in_with_facebook_spec.rb
index b81bacd82..4c712548e 100644
--- a/spec/system/authentication/user_logs_in_with_facebook_spec.rb
+++ b/spec/system/authentication/user_logs_in_with_facebook_spec.rb
@@ -36,7 +36,7 @@ RSpec.describe "Authenticating with Facebook" do
end
end
- context "when using valid credentials but witholding email address" do
+ context "when using valid credentials but withholding email address" do
before do
OmniAuth.config.mock_auth[:facebook][:info].delete(:email)
OmniAuth.config.mock_auth[:facebook][:extra][:raw_info].delete(:email)
@@ -160,7 +160,7 @@ RSpec.describe "Authenticating with Facebook" do
end
end
- context "when a validation failure occurrs" do
+ context "when a validation failure occurs" do
before do
# A User is invalid if their name is more than 100 chars long
OmniAuth.config.mock_auth[:facebook].info.name = "X" * 101
diff --git a/spec/system/authentication/user_logs_in_with_forem_spec.rb b/spec/system/authentication/user_logs_in_with_forem_spec.rb
index 45be4bc2d..b54afbdad 100644
--- a/spec/system/authentication/user_logs_in_with_forem_spec.rb
+++ b/spec/system/authentication/user_logs_in_with_forem_spec.rb
@@ -35,7 +35,7 @@ RSpec.describe "Authenticating with Forem" do
end
end
- context "when using valid credentials but witholding email address" do
+ context "when using valid credentials but withholding email address" do
before do
OmniAuth.config.mock_auth[:forem][:info].delete(:email)
OmniAuth.config.mock_auth[:forem][:extra][:raw_info].delete(:email)
@@ -159,7 +159,7 @@ RSpec.describe "Authenticating with Forem" do
end
end
- context "when a validation failure occurrs" do
+ context "when a validation failure occurs" do
before do
# A User is invalid if their name is more than 100 chars long
OmniAuth.config.mock_auth[:forem].info.name = "X" * 101
diff --git a/spec/system/authentication/user_logs_in_with_github_spec.rb b/spec/system/authentication/user_logs_in_with_github_spec.rb
index 2d6cb2a6d..02925fdfa 100644
--- a/spec/system/authentication/user_logs_in_with_github_spec.rb
+++ b/spec/system/authentication/user_logs_in_with_github_spec.rb
@@ -127,7 +127,7 @@ RSpec.describe "Authenticating with GitHub" do
end
end
- context "when a validation failure occurrs" do
+ context "when a validation failure occurs" do
before do
# A User is invalid if their name is more than 100 chars long
OmniAuth.config.mock_auth[:github].extra.raw_info.name = "X" * 101
diff --git a/spec/system/authentication/user_logs_in_with_twitter_spec.rb b/spec/system/authentication/user_logs_in_with_twitter_spec.rb
index c72b509cc..5d4315520 100644
--- a/spec/system/authentication/user_logs_in_with_twitter_spec.rb
+++ b/spec/system/authentication/user_logs_in_with_twitter_spec.rb
@@ -123,7 +123,7 @@ RSpec.describe "Authenticating with Twitter" do
end
end
- context "when a validation failure occurrs" do
+ context "when a validation failure occurs" do
before do
# A User is invalid if their name is more than 100 chars long
OmniAuth.config.mock_auth[:twitter].extra.raw_info.name = "X" * 101
diff --git a/spec/system/feedback_message_spec.rb b/spec/system/feedback_message_spec.rb
index 062d288ba..1204636c8 100644
--- a/spec/system/feedback_message_spec.rb
+++ b/spec/system/feedback_message_spec.rb
@@ -10,7 +10,7 @@ RSpec.describe "Feedback report by chat channel messages", type: :system do
sign_in user
end
- it "feedback messahe should increase by one", js: true do
+ it "feedback message should increase by one", js: true do
expect do
post "/feedback_messages", params: {
feedback_message: {
diff --git a/spec/system/organization/user_leaves_an_organization_spec.rb b/spec/system/organization/user_leaves_an_organization_spec.rb
index 25bbb963c..80e3e83da 100644
--- a/spec/system/organization/user_leaves_an_organization_spec.rb
+++ b/spec/system/organization/user_leaves_an_organization_spec.rb
@@ -10,7 +10,7 @@ RSpec.describe "User leaves an organization", type: :system do
end
context "when user visits member organization settings" do
- it "shows the leave oranization button", js: true do
+ it "shows the leave organization button", js: true do
expect(page).to have_button("Leave Organization")
end
end
diff --git a/spec/system/tags/user_updates_a_tag_spec.rb b/spec/system/tags/user_updates_a_tag_spec.rb
index 0cd6dc331..9a14effe8 100644
--- a/spec/system/tags/user_updates_a_tag_spec.rb
+++ b/spec/system/tags/user_updates_a_tag_spec.rb
@@ -9,7 +9,7 @@ RSpec.describe "User updates a tag", type: :system do
describe "Update tag as a super_admin" do
let(:tag) { create(:tag) }
- context "when no colors have been choosen for the tag" do
+ context "when no colors have been chosen for the tag" do
before do
sign_in super_admin
visit edit_tag_path(tag.name)
@@ -29,7 +29,7 @@ RSpec.describe "User updates a tag", type: :system do
end
end
- context "when colors have already been choosen for the tag" do
+ context "when colors have already been chosen for the tag" do
let(:tag) { create(:tag, bg_color_hex: "#0000ff", text_color_hex: "#ff0000") }
before do
@@ -52,7 +52,7 @@ RSpec.describe "User updates a tag", type: :system do
describe "Update tag as a tag_moderator" do
let(:tag) { create(:tag) }
- context "when no colors have been choosen for the tag" do
+ context "when no colors have been chosen for the tag" do
before do
tag_moderator.add_role(:tag_moderator, tag)
sign_in tag_moderator
@@ -73,7 +73,7 @@ RSpec.describe "User updates a tag", type: :system do
end
end
- context "when colors have already been choosen for the tag" do
+ context "when colors have already been chosen for the tag" do
let(:tag) { create(:tag, bg_color_hex: "#0000ff", text_color_hex: "#ff0000") }
before do
diff --git a/spec/system/user/user_settings_response_templates_spec.rb b/spec/system/user/user_settings_response_templates_spec.rb
index ccfd69d7b..dea7f17fa 100644
--- a/spec/system/user/user_settings_response_templates_spec.rb
+++ b/spec/system/user/user_settings_response_templates_spec.rb
@@ -18,7 +18,7 @@ RSpec.describe "User uses response templates settings", type: :system do
expect(page).to have_current_path "/settings/response-templates/#{response_template.id}", ignore_query: true
end
- it "shows the proper message when deleting a reponse template", js: true do
+ it "shows the proper message when deleting a response template", js: true do
visit "/settings/extensions"
expect(page).to have_text(response_template.title)
diff --git a/spec/workers/data_update_worker_spec.rb b/spec/workers/data_update_worker_spec.rb
index 5169959e0..0a29aab1f 100644
--- a/spec/workers/data_update_worker_spec.rb
+++ b/spec/workers/data_update_worker_spec.rb
@@ -46,10 +46,10 @@ RSpec.describe DataUpdateWorker, type: :worker do
worker.perform
end.to change(DataUpdateScript, :count).by(2)
- successsful_dus = DataUpdateScript.find_by(status: :succeeded)
- expect(successsful_dus.finished_at).not_to be_nil
- expect(successsful_dus.run_at).not_to be_nil
- expect(successsful_dus.error).to be_nil
+ successful_dus = DataUpdateScript.find_by(status: :succeeded)
+ expect(successful_dus.finished_at).not_to be_nil
+ expect(successful_dus.run_at).not_to be_nil
+ expect(successful_dus.error).to be_nil
failed_dus = DataUpdateScript.find_by(status: :failed)
expect(failed_dus.finished_at).not_to be_nil
diff --git a/spec/workers/webhook/destroy_worker_spec.rb b/spec/workers/webhook/destroy_worker_spec.rb
index 3633375be..4cc824f67 100644
--- a/spec/workers/webhook/destroy_worker_spec.rb
+++ b/spec/workers/webhook/destroy_worker_spec.rb
@@ -8,7 +8,7 @@ RSpec.describe Webhook::DestroyWorker, type: :worker do
let(:worker) { subject }
describe "#perform_now" do
- it "destrous webhook by user_id and app_id" do
+ it "destroys webhook by user_id and app_id" do
worker.perform(user.id, oauth_app.id)
expect(Webhook::Endpoint.find_by(id: webhook_endpoint.id)).to be_nil
expect(other_webhook_endpoint.reload).to be_present