a11yist/test/controllers/admin/backups_controller_test.rb

27 lines
672 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
skip "this is flakey during test because the db files get deleted regularly"
get admin_backup_url(@admin_backup, format: :zip)
assert_response :success
end
end
end