test/logster/middleware/test_viewer.rb in logster-1.4.0.pre vs test/logster/middleware/test_viewer.rb in logster-2.0.0.pre
- old
+ new
@@ -31,13 +31,13 @@
def test_path_resolution
assert_nil(viewer.send(:resolve_path, "/logs"))
assert_nil(viewer.send(:resolve_path, "/admin/logsie"))
assert_nil(viewer.send(:resolve_path, "/admin/logsie/bla"))
- assert_equal("/",viewer.send(:resolve_path, "/logsie"))
- assert_equal("/",viewer.send(:resolve_path, "/logsie/"))
- assert_equal("/hello/world",viewer.send(:resolve_path, "/logsie/hello/world"))
+ assert_equal("/", viewer.send(:resolve_path, "/logsie"))
+ assert_equal("/", viewer.send(:resolve_path, "/logsie/"))
+ assert_equal("/hello/world", viewer.send(:resolve_path, "/logsie/hello/world"))
end
def test_search_raceguard_s
response = request.get('/logsie/messages.json?search=searchkey')
result = JSON.parse(response.body)
@@ -51,10 +51,10 @@
end
def test_search_raceguard_f
response = request.get("/logsie/messages.json?filter=0_1_2_3_4")
result = JSON.parse(response.body)
- assert_equal([0,1,2,3,4], result['filter'])
+ assert_equal([0, 1, 2, 3, 4], result['filter'])
end
def test_regex_parse
assert_equal(/hello/i, viewer.send(:parse_regex, '/hello/i'))
end