X-Git-Url: http://git.osdn.net/view?p=pettanr%2Fpettanr.git;a=blobdiff_plain;f=spec%2Fmodels%2Fstory_spec.rb;h=f655870c6751b665d63ca346d6812f46849b1ca0;hp=1f9a23e9856e16ee5858c96949d8f2fbc55ec8a7;hb=d06c85598de5091129d22bfdcc650fae261a6219;hpb=7da6c008e9358396e0bc696e6ee47e4b5e8488f6 diff --git a/spec/models/story_spec.rb b/spec/models/story_spec.rb index 1f9a23e9..f655870c 100644 --- a/spec/models/story_spec.rb +++ b/spec/models/story_spec.rb @@ -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