OSDN Git Service

t#30200:update i18n devise
[pettanr/pettanr.git] / spec / controllers / ground_pictures_controller_spec.rb
index 9f1c798..eabcf27 100644 (file)
@@ -9,7 +9,7 @@ describe GroundPicturesController do
     @sp = FactoryGirl.create :system_picture
     @lg = FactoryGirl.create :license_group, :name => 'peta'
     @license = FactoryGirl.create :license, :license_group_id => @lg.id, :system_picture_id => @sp.id
-    @author = @user.author
+    @author = FactoryGirl.create :author, :user_id => @user.id
     @artist = FactoryGirl.create :artist_yas, :author_id => @author.id
     @op = FactoryGirl.create :original_picture, :artist_id => @artist.id
     @p = FactoryGirl.create :picture, :original_picture_id => @op.id, :license_id => @license.id, :artist_id => @artist.id