mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
DEV: Use proper wording for contexts in specs
This commit is contained in:

committed by
Loïc Guitaut

parent
02987e05d5
commit
3eaac56797
@ -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"
|
||||
|
||||
|
Reference in New Issue
Block a user