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,9 +39,8 @@ class Exports::MembersExportTest < ActionDispatch::IntegrationTest
assert_not_nil workbook[I18n.t('export_members.members')]
# test data
member = User.members.first
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
# Clean XLSX file