Split Export model into user and whole-account export

This commit is contained in:
Stanko K.R.
2025-12-12 17:55:25 +01:00
parent 63d9f29b1e
commit 6f17e3867d
9 changed files with 323 additions and 266 deletions
@@ -50,7 +50,7 @@ class Account::ExportsControllerTest < ActionDispatch::IntegrationTest
end
test "show displays completed export with download link" do
export = Account::Export.create!(account: Current.account, user: users(:david))
export = Account::SingleUserExport.create!(account: Current.account, user: users(:david))
export.build
get account_export_path(export)
@@ -67,7 +67,7 @@ class Account::ExportsControllerTest < ActionDispatch::IntegrationTest
end
test "show does not allow access to another user's export" do
export = Account::Export.create!(account: Current.account, user: users(:kevin))
export = Account::SingleUserExport.create!(account: Current.account, user: users(:kevin))
export.build
get account_export_path(export)