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
10
10
@test ! res[:base64 ]
11
11
12
12
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 )
15
15
end
16
16
@test res[:content ] == data2
17
17
@test res[:filename ] == " test_file.csv"
27
27
@test res[:base64 ]
28
28
29
29
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" )
33
31
@test res[:content ] == Base64. base64encode (data2)
34
32
@test res[:filename ] == " test_file.csv"
35
33
@test res[:type ] == " text/csv"
You can’t perform that action at this time.
0 commit comments