mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 16:02:03 +02:00
Add bank statement import test
This commit is contained in:
parent
0c30e8b8ee
commit
6655ac6354
2 changed files with 23 additions and 0 deletions
16
test/system/admin_area/bank_statement_test.rb
Normal file
16
test/system/admin_area/bank_statement_test.rb
Normal file
|
@ -0,0 +1,16 @@
|
|||
require 'application_system_test_case'
|
||||
|
||||
class BankStatementTest < 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
|
Loading…
Add table
Add a link
Reference in a new issue