OSDN Git Service

pass test
[pettanr/pettanr.git] / spec / factories.rb
index 6cb4f0a..2f449d2 100644 (file)
@@ -140,32 +140,46 @@ Factory.define :system_picture, :class => SystemPicture do |sp|
   sp.ext 'png'
   sp.width 222
   sp.height 111
-  sp.fileseze 100000
+  sp.filesize 100000
+  sp.md5 '098f6bcd4621d373cade4e832627b4f6'
+end
+
+Factory.define :speech_balloon_template, :class => SpeechBalloonTemplate do |sbt|
+  sbt.name 'Plain@pettanr.com'
+  sbt.classname 'Plain'
+  sbt.caption 'normal fuki'
+  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|
@@ -182,7 +196,6 @@ end
 
 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