Replace trace-related fixtures with factories.
[rails.git] / test / factories / traces.rb
1 FactoryGirl.define do
2   factory :trace do
3     sequence(:name) { |n| "Trace #{n}.gpx" }
4     sequence(:description) { |n| "This is trace #{n}" }
5
6     # Fixme requires User Factory
7     user_id 1
8
9     timestamp Time.now
10     inserted true
11
12     trait :deleted do
13       visible false
14     end
15   end
16 end