<% end %>
diff --git a/app/views/events/index.html.erb b/app/views/events/index.html.erb
index cb932caa7..0ef94ee0c 100644
--- a/app/views/events/index.html.erb
+++ b/app/views/events/index.html.erb
@@ -16,7 +16,6 @@
-
diff --git a/app/views/mailers/notify_mailer/trusted_role_email.html.erb b/app/views/mailers/notify_mailer/trusted_role_email.html.erb
index 90dfd8faf..a494f597e 100644
--- a/app/views/mailers/notify_mailer/trusted_role_email.html.erb
+++ b/app/views/mailers/notify_mailer/trusted_role_email.html.erb
@@ -5,7 +5,7 @@
We are happy to let you know that your <%= community_name %> account has just been upgraded to "trusted" status.
- This gives you the power to privately downvote content which is low quality or spam and harassment, alongside a bit of additional functionality to help ensure the success of the community. Anywhere you now see a shield on the site indicates a place you can go to join our community's crowd-sourced moderation initiative.
+ This gives you the power to privately downvote content which is low quality or spam and harassment, alongside a bit of additional functionality to help ensure the success of the community. Anywhere you now see a shield on the site indicates a place you can go to join our community's crowd-sourced moderation initiative.
You may occasionally receive notifications about optional moderation actions, but you can unsubscribe if you do not want to receive these notices.
diff --git a/app/views/users/_ux.html.erb b/app/views/users/_ux.html.erb
index ba1202d1b..8a3f6d364 100644
--- a/app/views/users/_ux.html.erb
+++ b/app/views/users/_ux.html.erb
@@ -47,7 +47,7 @@
Content Customization
- <%= f.label :experience_level, "What is your approximate coding experience level (1-5)?", class: "crayons-field__label" %>
+ <%= f.label :experience_level, "What is your approximate experience level (1-5)?", class: "crayons-field__label" %>
<% user_experience_levels.each_with_index do |exp, i| %>
<%= render partial: "experience_selector", locals: { f: f, exp: exp, i: i, label: user_experience_labels } %>
diff --git a/docs/backend/auth-facebook.md b/docs/backend/auth-facebook.md
index 60ec88905..f9b7d2fcc 100644
--- a/docs/backend/auth-facebook.md
+++ b/docs/backend/auth-facebook.md
@@ -44,8 +44,8 @@ application.

7. From the basic settings screen dashboard copy the **App ID** and **App
- Secret** values to your `.env` file accordingly (name of Facebook
- key -> name of our `SiteConfig` variable).
+ Secret** values to your `.env` file accordingly (name of Facebook key -> name
+ of our `SiteConfig` variable).
```text
APP ID -> FACEBOOK_APP_ID
diff --git a/docs/backend/auth-github.md b/docs/backend/auth-github.md
index 78221a8ce..ac9e4462e 100644
--- a/docs/backend/auth-github.md
+++ b/docs/backend/auth-github.md
@@ -18,8 +18,8 @@ keys. Then you'll need to provide these keys to the Rails application.

3. You will be redirected to the app's **Developer settings**. Here you will
- find the keys. Add them to your `.env` file accordingly (name of GitHub key -> name of our
- `ENV` variable):
+ find the keys. Add them to your `.env` file accordingly (name of GitHub key
+ -> name of our `ENV` variable):
```text
Client ID -> GITHUB_KEY
diff --git a/docs/backend/auth-twitter.md b/docs/backend/auth-twitter.md
index 62bf9007d..89f71e54a 100644
--- a/docs/backend/auth-twitter.md
+++ b/docs/backend/auth-twitter.md
@@ -84,10 +84,10 @@ application.

-10. From the same dashboard access the **Keys and tokens** and add them to your `.env` file accordingly
- (name of Twitter key -> name of our `ENV` variable). Be sure to
- copy the _access token_ and _access token secret_ right away because it will
- be hidden from you in the future.
+10. From the same dashboard access the **Keys and tokens** and add them to your
+ `.env` file accordingly (name of Twitter key -> name of our `ENV` variable).
+ Be sure to copy the _access token_ and _access token secret_ right away
+ because it will be hidden from you in the future.
```text
API key -> TWITTER_KEY
diff --git a/docs/installation/containers.md b/docs/installation/containers.md
index cd5cabcf4..934dde6d0 100644
--- a/docs/installation/containers.md
+++ b/docs/installation/containers.md
@@ -61,8 +61,8 @@ with Podman. You can install it by following these
`git clone https://github.com//forem.git`
1. Set up your environment variables/secrets
- - Take a look at `.env_sample`. This file lists all the `ENV` variables we use
- and provides a fake default for any missing keys.
+ - Take a look at `.env_sample`. This file lists all the `ENV` variables we
+ use and provides a fake default for any missing keys.
- The [backend guide](/backend) will show you how to get free API keys for
additional services that may be required to run certain parts of the app.
- For any key that you wish to enter/replace:
diff --git a/docs/installation/linux.md b/docs/installation/linux.md
index b42697fc4..e15895f3b 100644
--- a/docs/installation/linux.md
+++ b/docs/installation/linux.md
@@ -89,8 +89,8 @@ NOTE: Make sure to download **the OSS version**, `elasticsearch-oss`.
1. Install bundler with `gem install bundler`
1. Set up your environment variables/secrets
- - Take a look at `.env_sample`. This file lists all the `ENV` variables we use
- and provides a fake default for any missing keys.
+ - Take a look at `.env_sample`. This file lists all the `ENV` variables we
+ use and provides a fake default for any missing keys.
- If you use a remote computer as dev env, you need to set `APP_DOMAIN`
variable to the remote computer's domain name.
- The [backend guide](/backend) will show you how to get free API keys for
diff --git a/docs/installation/mac.md b/docs/installation/mac.md
index c1d59c05f..84f3a434b 100644
--- a/docs/installation/mac.md
+++ b/docs/installation/mac.md
@@ -209,8 +209,8 @@ your local Elasticsearch installation, for example:
3. Install bundler with `gem install bundler`
4. Set up your environment variables/secrets
- - Take a look at `.env_sample` to see all the `ENV` variables we use and the fake
- default provided for any missing keys.
+ - Take a look at `.env_sample` to see all the `ENV` variables we use and the
+ fake default provided for any missing keys.
- If you use a remote computer as dev env, you need to set `APP_DOMAIN`
variable to the remote computer's domain name.
- The [backend guide](/backend) will show you how to get free API keys for
diff --git a/docs/installation/windows.md b/docs/installation/windows.md
index 34965588e..7f062c4b3 100644
--- a/docs/installation/windows.md
+++ b/docs/installation/windows.md
@@ -256,8 +256,8 @@ To install Elasticsearch perform the following steps:
1. Install bundler with `gem install bundler`
1. Set up your environment variables/secrets
- - Take a look at `.env_sample`. This file lists all the `ENV` variables we use
- and provides a fake default for any missing keys.
+ - Take a look at `.env_sample`. This file lists all the `ENV` variables we
+ use and provides a fake default for any missing keys.
- If you use a remote computer as dev env, you need to set `APP_DOMAIN`
variable to the remote computer's domain name.
- The [backend guide](/backend) will show you how to get free API keys for
diff --git a/spec/requests/admin/configs_spec.rb b/spec/requests/admin/configs_spec.rb
index 411c93e7d..c246be51e 100644
--- a/spec/requests/admin/configs_spec.rb
+++ b/spec/requests/admin/configs_spec.rb
@@ -141,6 +141,20 @@ RSpec.describe "/admin/config", type: :request do
post "/admin/config", params: { site_config: { staff_user_id: 22 }, confirmation: confirmation_message }
expect(SiteConfig.staff_user_id).to eq(22)
end
+
+ it "updates the experience_low" do
+ experience_low = "Noobs"
+ post "/admin/config", params: { site_config: { experience_low: experience_low },
+ confirmation: confirmation_message }
+ expect(SiteConfig.experience_low).to eq(experience_low)
+ end
+
+ it "updates the experience_high" do
+ experience_high = "Advanced Peeps"
+ post "/admin/config", params: { site_config: { experience_high: experience_high },
+ confirmation: confirmation_message }
+ expect(SiteConfig.experience_high).to eq(experience_high)
+ end
end
describe "Emails" do