mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 12:46:07 +10:00
Add a blank line between before and it:
Feedback from: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4404#note_12301563
This commit is contained in:
@@ -71,6 +71,7 @@ describe User, models: true do
|
||||
before do
|
||||
allow_any_instance_of(ApplicationSetting).to receive(:restricted_signup_domains).and_return([])
|
||||
end
|
||||
|
||||
it 'accepts any email' do
|
||||
user = build(:user, email: "info@example.com")
|
||||
expect(user).to be_valid
|
||||
@@ -81,6 +82,7 @@ describe User, models: true do
|
||||
before do
|
||||
allow_any_instance_of(ApplicationSetting).to receive(:restricted_signup_domains).and_return(['example.com', '*.example.com'])
|
||||
end
|
||||
|
||||
it 'accepts info@example.com' do
|
||||
user = build(:user, email: "info@example.com")
|
||||
expect(user).to be_valid
|
||||
@@ -211,6 +213,7 @@ describe User, models: true do
|
||||
before do
|
||||
allow_any_instance_of(ApplicationSetting).to receive(:send_user_confirmation_email).and_return(true)
|
||||
end
|
||||
|
||||
let(:user) { create(:user, confirmed_at: nil, unconfirmed_email: 'test@gitlab.com') }
|
||||
|
||||
it 'returns unconfirmed' do
|
||||
|
||||
Reference in New Issue
Block a user