22 lines
433 B
Ruby
22 lines
433 B
Ruby
|
require 'test_helper'
|
||
|
|
||
|
module Admin
|
||
|
class AuthControllerTest < ActionDispatch::IntegrationTest
|
||
|
test "should get login" do
|
||
|
get admin_url
|
||
|
assert_response :success
|
||
|
assert_template 'admin/auth/login'
|
||
|
end
|
||
|
|
||
|
test "should get auth" do
|
||
|
post admin_auth_url
|
||
|
assert_response :success
|
||
|
end
|
||
|
|
||
|
test "should get logout" do
|
||
|
get admin_logout_url
|
||
|
assert_response :success
|
||
|
end
|
||
|
end
|
||
|
end
|