File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -46,15 +46,17 @@ def install
46
46
end
47
47
48
48
test do
49
- ( testpath /"access.log" ) . write \
49
+ ( testpath /"access.log" ) . write (
50
50
'127.0.0.1 - - [04/May/2015:15:48:17 +0200] "GET / HTTP/1.1" 200 612 "-" ' \
51
51
'"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) ' \
52
- 'AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36"'
52
+ 'AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36"' ,
53
+ )
53
54
54
- output = shell_output \
55
+ output = shell_output (
55
56
"#{ bin } /goaccess --time-format=%T --date-format=%d/%b/%Y " \
56
57
"--log-format='%h %^[%d:%t %^] \" %r\" %s %b \" %R\" \" %u\" ' " \
57
- "-f access.log -o json 2>/dev/null"
58
+ "-f access.log -o json 2>/dev/null" ,
59
+ )
58
60
59
61
assert_equal "Chrome" , JSON . parse ( output ) [ "browsers" ] [ "data" ] . first [ "data" ]
60
62
end
You can’t perform that action at this time.
0 commit comments