a11yist/test/controllers/admin/backups_controller_test.rb

28 lines
672 B
Ruby
Raw Permalink Normal View History

2024-09-05 22:54:38 +02:00
# frozen_string_literal: true
2024-07-24 01:48:27 +02:00
2024-09-05 22:54:38 +02:00
require "test_helper"
module Admin
class BackupsControllerTest < ::ControllerTest
2024-09-22 22:49:53 +02:00
teardown do
logout
end
setup do
User.create!(email_address: "test@example.com", password: "password")
2024-09-22 22:49:53 +02:00
login("test@example.com", "password")
end
2024-10-27 03:38:15 +01:00
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
2024-11-11 01:40:04 +01:00
skip "this is flakey during test because the db files get deleted regularly"
2024-10-27 03:38:15 +01:00
get admin_backup_url(@admin_backup, format: :zip)
2024-09-05 22:54:38 +02:00
assert_response :success
end
2024-07-24 01:48:27 +02:00
end
end