Skip to content

Commit f4fa78b

Browse files
svenweyKagemaru
authored andcommitted
add test with non-billable worktime
1 parent 565267d commit f4fa78b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/controllers/accounting_posts_controller_test.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,16 @@ class AccountingPostsControllerTest < ActionController::TestCase
362362
assert_match 'PITC-PT,100.0,6.0,0,92.0,0', csv_data_lines.first
363363
end
364364

365+
test 'GET export csv with timespan including non-billable' do
366+
get :export_csv, params: { order_id: orders(:puzzletime).id, start_date: '2006-12-04' }
367+
368+
assert_match expected_csv_header, csv_header
369+
puts csv_data_lines
370+
371+
assert_equal 1, csv_data_lines.size
372+
assert_match 'PITC-PT,100.0,16.0,10.0,92.0,0', csv_data_lines.first
373+
end
374+
365375
private
366376

367377
def expected_csv_header

0 commit comments

Comments
 (0)