このコミットが含まれているのは:
2026-10-31 14:25:31 +09:00
コミット 5b77285a6b
10個のファイルの変更、78行の追加、54行の削除
+5 -2
ファイルの表示
@@ -37,7 +37,6 @@ RSpec.describe 'Counts export contracts' do
block.call(page)
end
allow(CountsTableQuery).to receive(:new).and_return(query)
allow(ApplicationRecord).to receive(:transaction).with(isolation: :repeatable_read).and_yield
end
it 'reports aggregation, actual output progress and regular-row metadata' do
@@ -175,11 +174,15 @@ end
RSpec.describe 'Counts download acknowledgement' do
around do |example|
Dir.mktmpdir('counts-ack-spec') do |path|
allow(CountsExportDownload).to receive(:directory).and_return(Pathname.new(path))
@counts_ack_dir = Pathname.new(path)
HistoryAccess.set(user: nil) { example.run }
end
end
before do
allow(CountsExportDownload).to receive(:directory).and_return(@counts_ack_dir)
end
it 'binds an acknowledgement to the owner, job, file token and fresh attempt' do
CountsExportJobs.pulse
payload = { 'resource' => 'posts', 'definition' => 'history', 'mode' => 'details',