so this is really simple:
first generate the forgery folders:
./script/generate forgery
Then create a Forgery Class in the Rails Root /lib/forgeries/service_forgery.rb
# Generates random service
class ServiceForgery < Forgery
def self.service_name
dictionaries[:services].random
end
end
Then create a dictionary file with no extenstion in Rails Root/lib/dictionaries/services
simple text file with hard returns:
Women’s Cut & Blow Dry
Men’s Cut
Single Process
Body Waves
Half head highlight
Up Do
BangTrim
Bonjour
then you can call the forgery like so:
ServiceForgery.service_name
and in your blueprints.rb:
Service.blueprint do
name { ServiceForgery.name }
category
start_price
end