diff --git a/samples/cgi/helloerb.rhtml b/samples/cgi/helloerb.rhtml
index 6172635d..0c740f58 100644
--- a/samples/cgi/helloerb.rhtml
+++ b/samples/cgi/helloerb.rhtml
@@ -18,7 +18,7 @@
<%= _("QUERY_STRING") %>: <%= cgi.query_string %>
<%= _("Call a library method which has another textdomain.") %>
-<%= lib.hello %>
+<%= lib.hello %>
<%= _("Back") %>
diff --git a/test/fixtures/erb/case.rhtml b/test/fixtures/erb/case.rhtml
index eb610c69..9c413451 100644
--- a/test/fixtures/erb/case.rhtml
+++ b/test/fixtures/erb/case.rhtml
@@ -10,6 +10,8 @@
<%= _('Hello') %>
<% case 1 %>
+ <% when 1 %>
+ <%# noop %>
<% end %>
<%= _('World') %>
diff --git a/test/test_parser.rb b/test/test_parser.rb
index fdc3d318..0b5c933c 100644
--- a/test/test_parser.rb
+++ b/test/test_parser.rb
@@ -275,7 +275,7 @@ def test_case
@ary = GetText::ErubiParser.parse(path)
assert_target("Hello", ["#{path}:11"])
- assert_target("World", ["#{path}:14"]) # Detected with Erubi
+ assert_target("World", ["#{path}:16"]) # Detected with Erubi
end
end