password generation

This commit is contained in:
2016-09-28 22:39:42 -05:00
parent 2a10a93ac9
commit 7d7e040c2b
5 changed files with 20 additions and 2 deletions

View File

@ -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