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:
parent
41465922f3
commit
fa18891bc6
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user