socialforge/spec/factories/courses.rb

16 lines
261 B
Ruby
Raw Normal View History

2015-05-15 16:18:44 +08:00
#coding=utf-8
#
2015-05-15 13:39:26 +08:00
FactoryGirl.define do
factory :course do
2015-05-15 16:18:44 +08:00
name 'name'
2015-05-15 13:39:26 +08:00
time '2015'
2015-05-15 16:18:44 +08:00
term 'term'
class_period 1
2015-05-15 13:39:26 +08:00
password '111'
2015-05-15 16:18:44 +08:00
description 'description'
2015-05-15 13:39:26 +08:00
is_public 1
open_student 1
association :teacher, factory: :user
end
end