password generation
This commit is contained in:
@ -37,4 +37,12 @@ class AccountsControllerTest < ActionDispatch::IntegrationTest
|
||||
assert_response :success
|
||||
assert_match '1q2w3e4r5t6y7u', json['hash']
|
||||
end
|
||||
|
||||
test 'genpass should provide password' do
|
||||
get genpass_url, xhr: true
|
||||
json = JSON.parse(response.body).to_hash
|
||||
|
||||
assert_response :success
|
||||
assert json['hash']
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user