OSDN Git Service

t#31538:fix default value
[pettanr/pettanr.git] / spec / models / ground_picture_spec.rb
index 92228a7..8230ce0 100644 (file)
@@ -171,9 +171,10 @@ describe GroundPicture do
   end
   
   describe '上書き補充に於いて' do
-    it 'defined' do
+    it 'panel_idが設定されている' do
       @gp = FactoryGirl.build :ground_picture, :panel_id => @panel.id, :picture_id => @p.id
-      @gp.overwrite
+      @gp.overwrite  @panel.id
+      @gp.panel_id.should eq @panel.id
     end
   end