Fix spec doc; sends welcome email for active users
This commit is contained in:
parent
1eed1e240b
commit
4a182f8bba
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue