From 385edec24d45e35191aba474d2a740f6f38313c0 Mon Sep 17 00:00:00 2001 From: Jonathan Roes Date: Fri, 19 Apr 2013 23:44:52 -0300 Subject: Simplify ERB example code --- guides/source/testing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guides/source/testing.md b/guides/source/testing.md index b655bb2307..cab13751f0 100644 --- a/guides/source/testing.md +++ b/guides/source/testing.md @@ -85,8 +85,8 @@ ERB allows you to embed Ruby code within templates. The YAML fixture format is p ```erb <% 1000.times do |n| %> user_<%= n %>: - username: <%= "user%03d" % n %> - email: <%= "user%03d@example.com" % n %> + username: <%= "user#{n}" %> + email: <%= "user#{n}@example.com" %> <% end %> ``` -- cgit v1.2.3