- Remove all Rodauth stuff and implement simple custom auth - Migrate from sprockets to propshaft, hack some bootstrap stuff
26 lines
589 B
Ruby
26 lines
589 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "test_helper"
|
|
|
|
module Admin
|
|
class BackupsControllerTest < ::ControllerTest
|
|
teardown do
|
|
logout
|
|
end
|
|
|
|
setup do
|
|
User.create!(email_address: "test@example.com", password: "password")
|
|
login("test@example.com", "password")
|
|
end
|
|
|
|
test "should create admin_backup xlsx" do
|
|
get admin_backup_url(@admin_backup, format: :xlsx)
|
|
assert_response :success
|
|
end
|
|
|
|
test "should create admin_backup zip" do
|
|
get admin_backup_url(@admin_backup, format: :zip)
|
|
assert_response :success
|
|
end
|
|
end
|
|
end
|