BigW Consortium Gitlab

Commit 1c517153 by Dmitriy Zaporozhets

fix admin users tests

parent 9a5c152c
......@@ -3,6 +3,8 @@ Hi <%= @user.name %>!
Administrator created account for you. Now you are a member of company GitLab application.
login.................. <%= @user.email %>
password............... <%= @password %>
<% unless Gitlab.config.gitlab.signup_enabled %>
password............... <%= @password %>
<% end %>
Click here to login: <%= url_for(root_url) %>
......@@ -55,8 +55,8 @@ describe "Admin::Users" do
user = User.last
email = ActionMailer::Base.deliveries.last
email.subject.should have_content("Account was created")
email.body.should have_content(user.email)
email.body.should have_content(@password)
email.text_part.body.should have_content(user.email)
email.text_part.body.should have_content(@password)
end
end
......@@ -67,8 +67,8 @@ describe "Admin::Users" do
user = User.last
email = ActionMailer::Base.deliveries.last
email.subject.should have_content("Account was created")
email.body.should have_content(user.email)
email.body.should_not have_content(@password)
email.text_part.body.should have_content(user.email)
email.text_part.body.should_not have_content(@password)
end
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment