OSDN Git Service

Merge branch 'v04' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v04license
[pettanr/pettanr.git] / spec / models / resource_picture_spec.rb
index 9d91f1f..28a3430 100644 (file)
@@ -10,7 +10,9 @@ describe ResourcePicture do
     @other_user = Factory( :user_yas)
     @other_author = @other_user.author
     @other_artist = Factory :artist_yas, :author_id => @other_author.id
-    @license = Factory :license
+    @sp = Factory :system_picture
+    @lg = Factory :license_group
+    @license = Factory :license, :license_group_id => @lg.id, :system_picture_id => @sp.id
     @original_picture = Factory :original_picture, :artist_id => @artist.id, :license_id => @license.id\r
     
     class Mgk ; class Image ; end ; end