Skip to content

Commit c4931a7

Browse files
committed
better fix, tests pass
1 parent 3694621 commit c4931a7

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

test/fixtures/erb/case.rhtml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
</head>
1010
<body>
1111
<%= _('Hello') %>
12+
<% case 1 %>
13+
<% when 1 %>
14+
<%# noop %>
15+
<% end %>
1216
<%= _('World') %>
1317
</body>
1418
</html>

test/test_parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def test_case
275275
@ary = GetText::ErubiParser.parse(path)
276276

277277
assert_target("Hello", ["#{path}:11"])
278-
assert_target("World", ["#{path}:14"]) # Detected with Erubi
278+
assert_target("World", ["#{path}:16"]) # Detected with Erubi
279279
end
280280
end
281281

0 commit comments

Comments
 (0)