1 # frozen_string_literal: true
5 latitude { 1 * GeoRecord::SCALE }
6 longitude { 1 * GeoRecord::SCALE }
7 description { "Default note's description" }
15 closed_at { Time.now.utc }
17 after(:create) do |note, context|
18 create(:note_comment, :author => context.closed_by, :body => "Closing comment", :event => "closed", :note => note)
22 factory :note_with_comments do
27 after(:create) do |note, evaluator|
28 create(:note_comment, :event => "opened", :note => note)
29 create_list(:note_comment, evaluator.comments_count - 1, :note => note)