Permalink
Browse files

Simplify ERB example code

  • Loading branch information...
1 parent 615a2cb commit 385edec24d45e35191aba474d2a740f6f38313c0 @jroes jroes committed Apr 20, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 guides/source/testing.md
View
@@ -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 %>
```

0 comments on commit 385edec

Please sign in to comment.