ambition/spec/factories/notes.rb

21 lines
300 B
Ruby
Raw Normal View History

2016-12-29 17:33:25 +08:00
require 'faker'
FactoryGirl.define do
factory :note do
sequence(:content){ |n| "This is comment content#{n}"}
factory :note_content_nil do
content nil
end
factory :note_content_allspace do
content " "
end
end
end