# user.author Factory(:author_yas)
end
+Factory.define :author, :class => Author do |author|
+ author.name nil
+ author.sequence(:user_id) { |n| n}
+end
+
Factory.define :author_yas, :class => Author do |author|
author.name 'yassan'
author.sequence(:user_id) { |n| n}
# author.artist Factory(:artist_yas)
end
+Factory.define :artist, :class => Artist do |artist|
+ artist.sequence(:email) { |n| "hoge#{n}@gmail.com"}
+ artist.name nil
+# artist.association :author_yas
+end
+
Factory.define :artist_yas, :class => Artist do |artist|
artist.sequence(:email) { |n| "hoge#{n}@gmail.com"}
artist.name 'yas'
# artist.association :author_yas
end
+Factory.define :license, :class => License do |license|
+ license.name 'peta2.5'
+ license.url 'test'
+ license.cc_by 0
+ license.cc_sa 0
+ license.cc_nd 0
+ license.cc_nc 0
+ license.no_resize 0
+ license.no_flip 0
+ license.no_convert 0
+ license.keep_aspect_ratio 0
+end
+
Factory.define :normal_comic, :class => Comic do |comic|
comic.title "normal_comic"
comic.width 100
rp.ext 'png'
rp.width 222
rp.height 111
- rp.fileseze 100000
+ rp.filesize 100000
rp.artist_id 1
rp.license_id 1
rp.original_picture_id 1