]> git.openstreetmap.org Git - rails.git/blob - test/factories/notes.rb
Merge branch 'master' into moderation
[rails.git] / test / factories / notes.rb
1 FactoryGirl.define do
2   factory :note do
3     latitude 1 * GeoRecord::SCALE
4     longitude 1 * GeoRecord::SCALE
5     # tile QuadTile.tile_for_point(1,1)
6
7     factory :note_with_comments do
8       transient do
9         comments_count 1
10       end
11
12       after(:create) do |note, evaluator|
13         create_list(:note_comment, evaluator.comments_count, :note => note)
14       end
15     end
16   end
17 end