aboutsummaryrefslogtreecommitdiffstats
path: root/spec/factories/chouette_timeband.rb
blob: 010461479a1edbcef838cedbf0b412ccc14af647 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FactoryGirl.define do

  factory :timeband, class: Chouette::Timeband do
    sequence(:name) { |n| "Name: #{n}" }
    start_time { Time.now }
    end_time { Time.now + 1.hour }
    sequence(:objectid) { |n| "test:Timeband:#{n}:loc" }
  end

  factory :timeband_invalid, class: Chouette::Timeband do
    sequence(:name) { |n| "Name: #{n}" }
    start_time { Time.now + 1.hour }
    end_time { Time.now }
    sequence(:objectid) { |n| "test:Timeband:#{n}:loc" }
  end

end