1 Factory.define :admin, :class => Admin do |admin|
2 admin.sequence(:email) { |n| "admin#{n}@gmail.com"}
3 admin.password "admin0100"
4 admin.password_confirmation "admin0100"
8 Factory.define :user_yas, :class => User do |user|
9 user.sequence(:email) { |n| "hoge#{n}@gmail.com"}
10 user.password "user0100"
11 user.password_confirmation "user0100"
12 # user.author Factory(:author_yas)
15 Factory.define :author, :class => Author do |author|
17 author.sequence(:user_id) { |n| n}
20 Factory.define :author_yas, :class => Author do |author|
22 author.sequence(:user_id) { |n| n}
23 # author.association :user_yas
24 # author.artist Factory(:artist_yas)
27 Factory.define :artist, :class => Artist do |artist|
28 artist.sequence(:email) { |n| "hoge#{n}@gmail.com"}
30 # artist.association :author_yas
33 Factory.define :artist_yas, :class => Artist do |artist|
34 artist.sequence(:email) { |n| "hoge#{n}@gmail.com"}
36 # artist.association :author_yas
39 Factory.define :license, :class => License do |license|
40 license.name 'peta2.5'
41 license.url 'http://test.lc/'
49 license.keep_aspect_ratio 0
52 Factory.define :common_license, :class => CommonLicense do |license|
54 license.name 'peta2.1'
55 license.url 'http://test.lc/'
63 license.keep_aspect_ratio 0
66 Factory.define :original_license, :class => OriginalLicense do |license|
68 license.name 'peta2.1'
69 license.url 'http://test.olc/'
77 license.keep_aspect_ratio 0
80 Factory.define :comic, :class => Comic do |comic|
87 Factory.define :original_picture, :class => OriginalPicture do |op|
96 Factory.define :resource_picture, :class => ResourcePicture do |rp|
103 rp.original_picture_id 1
106 Factory.define :system_picture, :class => SystemPicture do |sp|
111 sp.md5 '098f6bcd4621d373cade4e832627b4f6'
114 Factory.define :speech_balloon_template, :class => SpeechBalloonTemplate do |sbt|
115 sbt.name 'Plain@pettanr.com'
116 sbt.classname 'Plain'
117 sbt.caption 'normal fuki'
122 Factory.define :speech_balloon, :class => SpeechBalloon do |sb|
124 sb.speech_balloon_template_id 1
131 Factory.define :balloon, :class => Balloon do |balloon|
132 balloon.speech_balloon_id 1
133 balloon.system_picture_id 1
138 balloon.caption 'test pict'
142 Factory.define :speech, :class => Speech do |speech|
143 speech.speech_balloon_id 1
144 speech.content 'test'
152 Factory.define :panel_picture, :class => PanelPicture do |pp|
154 pp.resource_picture_id 1
164 Factory.define :panel, :class => Panel do |panel|
175 Factory.define :story, :class => Story do |story|