File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ using Base64
1010 @test ! res[:base64 ]
1111
1212 data2 = " test 2 string"
13- res = dcc_send_string (" test_file.csv" ; type = " text/csv" ) do io
14- write (io, data2 )
13+ res = dcc_send_string (data2, " test_file.csv" ; type = " text/csv" ) do io, data
14+ write (io, data )
1515 end
1616 @test res[:content ] == data2
1717 @test res[:filename ] == " test_file.csv"
2727 @test res[:base64 ]
2828
2929 data2 = " test 2 string"
30- res = dcc_send_bytes (" test_file.csv" ; type = " text/csv" ) do io
31- write (io, data2)
32- end
30+ res = dcc_send_bytes (write, data2, " test_file.csv" ; type = " text/csv" )
3331 @test res[:content ] == Base64. base64encode (data2)
3432 @test res[:filename ] == " test_file.csv"
3533 @test res[:type ] == " text/csv"
You can’t perform that action at this time.
0 commit comments