Permalink
Browse files

added more reviews - varying details + latin text

  • Loading branch information...
1 parent 53053ab commit 18eda1402a41c32e170b5441b4375990c5fc5236 @paulcc committed Oct 26, 2009
Showing with 50 additions and 3 deletions.
  1. +50 −3 db/sample/reviews.yml
View
@@ -1,18 +1,22 @@
+<% def pick(*a)
+ a[rand(a.count)]
+ end
+%>
r1:
product: ror_tote
name: paul
location: here
rating: 4
title: "more uses for this item"
- review: "you can put four books in this bag"
+ review: "Nunc quis massa. Nulla facilisi. In enim. In venenatis nisi id eros."
approved: true
r2:
product: ror_tote
name: paul
location: here
rating: 3
title: "further comments"
- review: "some more observations about this thing"
+ review: "Nullam volutpat magna vel ligula. Suspendisse sit amet metus."
approved: false
r3:
product: ror_ringer
@@ -28,6 +32,49 @@ r4:
location: here
rating: 2
title: "not impressed"
- review: "I was expecting this jersey to be faster"
+ review: "Proin consequat, justo sit amet tempus consequat, elit est adipiscing odio, ut egestas pede eros in diam."
approved: true
+r5:
+ product: ror_ringer
+ name: chris
+ location: an office
+ rating: 5
+ title: "I have one for every day of the week"
+ review: "Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas"
+ approved: true
+r6:
+ product: ror_ringer
+ name: jack
+ location: here
+ rating: 4
+ title: "cooler than my toga"
+ review: "Nunc quis massa. Nulla facilisi. In enim. In venenatis nisi id eros."
+ approved: true
+r7:
+ product: ror_ringer
+ name: sarah
+ location: emerald city
+ rating: 2
+ title: "my other half didn't like it"
+ review: "Proin consequat, justo sit amet tempus consequat, elit est adipiscing odio, ut egestas pede eros in diam."
+ approved: false
+
+<% %w[ ror_tote ror_bag ror_baseball_jersey ror_jr_spaghetti ror_mug ror_ringer ror_stein ruby_baseball_jersey apache_baseball_jersey ].each do |item| %>
+r_<%=item%>_A:
+ product: <%= item %>
+ name: <%= pick *%w[andy bob charlie] %>
+ location: <%= pick *%w[london paris tokyo washington] %>
+ rating: <%= pick *%w[1 2 3 4 5] %>
+ title: <%= pick "I like", "I dislike" %> the product
+ review: "Curabitur nec pede. Quisque volutpat, neque ac porttitor sodales, sem lacus rutrum nulla, ullamcorper placerat ante tortor ac odio."
+ approved: <%= pick true, false %>
+r_<%=item%>_B:
+ product: <%= item %>
+ name: <%= pick *%w[zoe yvonne wendy] %>
+ location: <%= pick *%w[denver ontario berlin] %>
+ rating: <%= pick *%w[1 2 3 4 5] %>
+ title: <%= pick "I would buy", "I would not buy" %> this again
+ review: "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla nonummy aliquet mi. Proin lacus. Ut placerat."
+ approved: <%= pick true, false %>
+<% end %>

0 comments on commit 18eda14

Please sign in to comment.