Last active
October 20, 2018 15:28
-
-
Save pascalesdedy/f18cd3c0bfbff536bb67663e8ddb65f9 to your computer and use it in GitHub Desktop.
spec/factories/article.rb - used for creating CRUD using simple TDD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FactoryBot.define do | |
factory :article do | |
title { Faker::Lorem.word } | |
content { Faker::Lorem.paragraph(2) } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment