summaryrefslogtreecommitdiff
path: root/spec/factories/snippets.rb
blob: b9127b3d75e9e0e6c7ac42c1a22c7a1fea7029bb (plain)
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