Fix spec doc; sends welcome email for active users

This commit is contained in:
Chris Hunt 2013-06-05 16:50:24 -07:00
parent 1eed1e240b
commit 4a182f8bba
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ describe UsersController do
User.any_instance.stubs(:active?).returns(true) User.any_instance.stubs(:active?).returns(true)
end end
it 'should enqueue a signup email' do it 'enqueues a welcome email' do
User.any_instance.expects(:enqueue_welcome_message).with('welcome_user') User.any_instance.expects(:enqueue_welcome_message).with('welcome_user')
xhr :post, :create, name: @user.name, username: @user.username, xhr :post, :create, name: @user.name, username: @user.username,
password: "strongpassword", email: @user.email password: "strongpassword", email: @user.email