snippets.rb 240 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 FactoryGirl.define do sequence :title, aliases: [:content] do FFaker::Lorem.sentence end sequence :file_name do FFaker::Internet.user_name end factory :snippet do author title content file_name end end