]> git.openstreetmap.org Git - rails.git/blob - test/factories/diary_entries.rb
Refactor api_controller tests to avoid users fixtures.
[rails.git] / test / factories / diary_entries.rb
1 FactoryGirl.define do
2   factory :diary_entry do
3     sequence(:title) { |n| "Diary entry #{n}" }
4     sequence(:body) { |n| "This is diary entry #{n}" }
5
6     # Fixme requires User Factory
7     user_id 1
8   end
9 end