diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-07-15 21:20:45 +0300 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-07-19 01:52:29 +0300 |
commit | 7943767267873423acb1eddbf00b6c5684f7849f (patch) | |
tree | 25d9e68252127fcc43a895358560dcac99dc83b4 /spec/models/user_spec.rb | |
parent | e15fa67c9894ccb52aeb1f0116e083c9dbba24f5 (diff) |
Refactored the domain separator regex, plus syntax and grammar fixes.
Diffstat (limited to 'spec/models/user_spec.rb')
-rw-r--r-- | spec/models/user_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 79f77d116a7..5f130234df1 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -89,7 +89,7 @@ describe User, models: true do end describe 'email' do - context 'when no signup domains white listed' do + context 'when no signup domains whitelisted' do before do allow_any_instance_of(ApplicationSetting).to receive(:restricted_signup_domains).and_return([]) end @@ -100,7 +100,7 @@ describe User, models: true do end end - context 'when a signup domain is white listed and subdomains are allowed' do + context 'when a signup domain is whitelisted and subdomains are allowed' do before do allow_any_instance_of(ApplicationSetting).to receive(:restricted_signup_domains).and_return(['example.com', '*.example.com']) end @@ -121,7 +121,7 @@ describe User, models: true do end end - context 'when a signup domain is white listed and subdomains are not allowed' do + context 'when a signup domain is whitelisted and subdomains are not allowed' do before do allow_any_instance_of(ApplicationSetting).to receive(:restricted_signup_domains).and_return(['example.com']) end |