DEV: Use proper wording for contexts in specs

This commit is contained in:
Loïc Guitaut
2022-07-27 18:14:14 +02:00
committed by Loïc Guitaut
parent 02987e05d5
commit 3eaac56797
337 changed files with 2172 additions and 2723 deletions

View File

@ -8,7 +8,7 @@ RSpec.describe EmailValidator do
user.errors[:email].present?
end
context "blocked email" do
describe "blocked email" do
it "doesn't add an error when email doesn't match a blocked email" do
expect(blocks?('sam@sam.com')).to eq(false)
end
@ -39,7 +39,7 @@ RSpec.describe EmailValidator do
end
end
context "auto approve email domains" do
describe "auto approve email domains" do
it "works as expected" do
SiteSetting.auto_approve_email_domains = "example.com"