OSDN Git Service

merge v04
[pettanr/pettanr.git] / spec / models / story_spec.rb
index 1f9a23e..f655870 100644 (file)
@@ -4,7 +4,9 @@ require 'spec_helper'
 describe Story do
   before do
     Factory :admin
-    @license = Factory :license
+    @sp = Factory :system_picture
+    @lg = Factory :license_group
+    @license = Factory :license, :license_group_id => @lg.id, :system_picture_id => @sp.id
     @user = Factory( :user_yas)
     @author = @user.author
     @artist = Factory :artist_yas, :author_id => @author.id