31 lines
679 B
Ruby
31 lines
679 B
Ruby
|
require 'test_helper'
|
||
|
|
||
|
module Admin
|
||
|
class ProfileControllerTest < ActionDispatch::IntegrationTest
|
||
|
def setup
|
||
|
post admin_auth_url, params: { auth:
|
||
|
{ email: 'alan.admin@mailinator.com', password: 'password' } }
|
||
|
end
|
||
|
|
||
|
test "should get view" do
|
||
|
get admin_profile_url
|
||
|
assert_response :success
|
||
|
end
|
||
|
|
||
|
test "should get edit" do
|
||
|
get admin_edit_profile_url
|
||
|
assert_response :success
|
||
|
end
|
||
|
|
||
|
test "should post update" do
|
||
|
post admin_profile_url
|
||
|
assert_redirected_to admin_profile_url
|
||
|
end
|
||
|
|
||
|
test "should get lost_password" do
|
||
|
get admin_reset_password_url
|
||
|
assert_response :success
|
||
|
end
|
||
|
end
|
||
|
end
|