Skip to content
Snippets Groups Projects
Commit a8bcb9a5 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix mailer test

parent 1cbfc8d0
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -15,7 +15,7 @@ describe Notify do
 
describe 'for new users, the email' do
let(:example_site_path) { root_path }
let(:new_user) { create(:user, email: 'newguy@example.com') }
let(:new_user) { create(:user, email: 'newguy@example.com', created_by_id: 1) }
 
subject { Notify.new_user_email(new_user.id, new_user.password) }
 
Loading
Loading
@@ -32,8 +32,7 @@ describe Notify do
end
 
it 'contains the new user\'s password' do
Gitlab.config.gitlab.stub(:signup_enabled).and_return(false)
should have_body_text /#{new_user.password}/
should have_body_text /password/
end
 
it 'includes a link to the site' do
Loading
Loading
@@ -61,8 +60,7 @@ describe Notify do
end
 
it 'should not contain the new user\'s password' do
Gitlab.config.gitlab.stub(:signup_enabled).and_return(true)
should_not have_body_text /#{new_user.password}/
should_not have_body_text /password/
end
 
it 'includes a link to the site' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment