internetee-registry/test/system/admin_area/bank_statement_test.rb
Maciej Szlosarczyk 334c676a4f Fix name conflict in BankStatement
I also used the file we use for testing payments on staging, there was
some issue with the other file and I am not sure what it was.
2020-05-22 21:42:14 +05:00

16 lines
481 B
Ruby

require 'application_system_test_case'
class AdminAreaBankStatementTest < ApplicationSystemTestCase
setup do
sign_in users(:admin)
travel_to Time.zone.parse('2010-07-05 00:30:00')
end
def test_import_statement
assert_difference 'BankStatement.count', 1 do
visit import_admin_bank_statements_path
attach_file 'Th6 file', Rails.root.join('test', 'fixtures', 'files', 'bank_statement_test.txt').to_s
click_link_or_button 'Save'
end
end
end