# artist.association :author_yas
end
+Factory.define :license_group, :class => LicenseGroup do |license_group|
+ license_group.name 'pettan_public_01'
+ license_group.classname 'PettanPublicLicense'
+ license_group.caption 'pettan public 0.1'
+ license_group.url 'http://test.lc/'
+end
+
Factory.define :license, :class => License do |license|
+ license.license_group_id 1
license.name 'peta2.5'
+ license.caption 'flag'
license.url 'http://test.lc/'
- 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
+ license.system_picture_id 1
end
Factory.define :common_license, :class => CommonLicense do |license|
op.height 111
op.filesize 100000
op.artist_id 1
- op.license_id 1
+end
+
+Factory.define :oplg, :class => OriginalPictureLicenseGroup do |oplg|
+ oplg.original_picture_id 1
+ oplg.license_group_id 1
+end
+
+Factory.define :standard_license, :class => StandardLicense do |sl|
+ sl.license_id 1
+ sl.artist_name 'no name'
end
Factory.define :resource_picture, :class => ResourcePicture do |rp|
rp.original_picture_id 1
end
+Factory.define :picture, :class => Picture do |p|
+ p.original_picture_id 1
+ p.revision 1
+ p.ext 'png'
+ p.width 222
+ p.height 111
+ p.filesize 100000
+ p.artist_id 1
+ p.license_id 1
+ p.artist_name 'no name'
+ p.credit ''
+ p.settings ''
+end
+
Factory.define :system_picture, :class => SystemPicture do |sp|
sp.ext 'png'
sp.width 222
sbt.t 0
sbt.settings '{}'
end
+
+Factory.define :speech_balloon, :class => SpeechBalloon do |sb|
+ sb.panel_id 1
+ sb.speech_balloon_template_id 1
+ sb.classname 'Plain'
+ sb.z 1
+ sb.t 0
+ sb.settings '{}'
+end
+
Factory.define :balloon, :class => Balloon do |balloon|
- balloon.panel_id 1
- balloon.balloon_template_id 1
+ balloon.speech_balloon_id 1
balloon.system_picture_id 1
- balloon.tail 1
- balloon.size 1
balloon.x 100
balloon.y 200
- balloon.z 1
- balloon.t 0
balloon.width 222
balloon.height 333
+ balloon.caption 'test pict'
+ balloon.settings nil
end
Factory.define :speech, :class => Speech do |speech|
- speech.balloon_id 1
- speech.speech_template_id 1
+ speech.speech_balloon_id 1
speech.content 'test'
speech.x 10
speech.y 100
- speech.t 0
speech.width 200
speech.height 190
+ speech.settings nil
end
Factory.define :panel_picture, :class => PanelPicture do |pp|
Factory.define :panel, :class => Panel do |panel|
panel.comic_id 1
- panel.resource_picture_id nil
panel.border 1
panel.x nil
panel.y nil