admin interface generation
This commit is contained in:
21
test/controllers/admin/auth_controller_test.rb
Normal file
21
test/controllers/admin/auth_controller_test.rb
Normal file
@ -0,0 +1,21 @@
|
||||
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
|
Reference in New Issue
Block a user