1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00

(bug) invalid test assertion

This commit is contained in:
Sylvain 2022-12-14 11:30:06 +01:00
parent 41465922f3
commit fa18891bc6

View File

@ -39,13 +39,12 @@ class Exports::MembersExportTest < ActionDispatch::IntegrationTest
assert_not_nil workbook[I18n.t('export_members.members')] assert_not_nil workbook[I18n.t('export_members.members')]
# test data # test data
member = User.members.first
wb = workbook[I18n.t('export_members.members')] wb = workbook[I18n.t('export_members.members')]
assert_equal member.id, wb.sheet_data[1][0].value member = User.find(wb.sheet_data[1][0].value)
assert_equal (member.is_allow_newsletter ? 1 : nil), wb.sheet_data[1][4].value assert_equal (member.is_allow_newsletter ? 1 : nil), wb.sheet_data[1][4].value
# Clean XLSX file # Clean XLSX file
require 'fileutils' require 'fileutils'
FileUtils.rm(e.file) FileUtils.rm(e.file)
end end
end end