From 8e391682885c72c801769fa1c6d4e3107f42650f Mon Sep 17 00:00:00 2001 From: uu59 Date: Mon, 12 Dec 2016 18:04:10 +0900 Subject: [PATCH] cosme: Use newer Hash syntax --- spec/lib/regexp_preview/multi_line_spec.rb | 36 +++++++++++----------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/spec/lib/regexp_preview/multi_line_spec.rb b/spec/lib/regexp_preview/multi_line_spec.rb index 012d2a4..2b9053c 100644 --- a/spec/lib/regexp_preview/multi_line_spec.rb +++ b/spec/lib/regexp_preview/multi_line_spec.rb @@ -82,30 +82,30 @@ describe RegexpPreview::MultiLine do matches_info = [ { - :whole => "2013-3-03 14:27:33 [main] INFO Main - Start\n", - :matches => [ - {:key => "time", :matched => "2013-3-03 14:27:33", :pos => [0, 18]}, - {:key => "thread", :matched => "main", :pos => [20, 24]}, - {:key => "level", :matched => "INFO", :pos => [26, 30]}, - {:key => "message", :matched => " Main - Start\n", :pos => [30, 45]} + whole: "2013-3-03 14:27:33 [main] INFO Main - Start\n", + matches: [ + {key: "time", matched: "2013-3-03 14:27:33", pos: [0, 18]}, + {key: "thread", matched: "main", pos: [20, 24]}, + {key: "level", matched: "INFO", pos: [26, 30]}, + {key: "message", matched: " Main - Start\n", pos: [30, 45]} ] }, { - :whole => "2013-3-03 14:27:33 [main] ERROR Main - Exception\njavax.management.RuntimeErrorException: null\n at Main.main(Main.java:16) ~[bin/:na]\n", - :matches => [ - {:key => "time", :matched => "2013-3-03 14:27:33", :pos => [0, 18]}, - {:key => "thread", :matched => "main", :pos => [20, 24]}, - {:key => "level", :matched => "ERROR", :pos => [26, 31]}, - {:key => "message", :matched => " Main - Exception\njavax.management.RuntimeErrorException: null\n at Main.main(Main.java:16) ~[bin/:na]\n", :pos => [31, 136]}, + whole: "2013-3-03 14:27:33 [main] ERROR Main - Exception\njavax.management.RuntimeErrorException: null\n at Main.main(Main.java:16) ~[bin/:na]\n", + matches: [ + {key: "time", matched: "2013-3-03 14:27:33", pos: [0, 18]}, + {key: "thread", matched: "main", pos: [20, 24]}, + {key: "level", matched: "ERROR", pos: [26, 31]}, + {key: "message", matched: " Main - Exception\njavax.management.RuntimeErrorException: null\n at Main.main(Main.java:16) ~[bin/:na]\n", pos: [31, 136]}, ] }, { - :whole => "2013-3-03 14:27:33 [main] INFO Main - End", - :matches => [ - {:key => "time", :matched => "2013-3-03 14:27:33", :pos => [0, 18]}, - {:key => "thread", :matched => "main", :pos => [20, 24]}, - {:key => "level", :matched => "INFO", :pos => [26, 30]}, - {:key => "message", :matched => " Main - End", :pos => [30, 42]}, + whole: "2013-3-03 14:27:33 [main] INFO Main - End", + matches: [ + {key: "time", matched: "2013-3-03 14:27:33", pos: [0, 18]}, + {key: "thread", matched: "main", pos: [20, 24]}, + {key: "level", matched: "INFO", pos: [26, 30]}, + {key: "message", matched: " Main - End", pos: [30, 42]}, ] } ]