mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
(bug) invalid test assertion
This commit is contained in:
parent
41465922f3
commit
fa18891bc6
@ -39,13 +39,12 @@ 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
|
||||
require 'fileutils'
|
||||
FileUtils.rm(e.file)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user