X-Git-Url: http://git.osdn.net/view?p=pettanr%2Fpettanr.git;a=blobdiff_plain;f=spec%2Fcontrollers%2Fground_pictures_controller_spec.rb;h=eabcf278daf7122363981c47ec806d82930a4339;hp=9f1c7982035a17562d825fa5b546358b8e0f1f31;hb=2bd8e046bbbdd6d620af0637c3291cc7d787b0c5;hpb=c1ce32fbd93b9412ac557fe4d2e53887708caafd diff --git a/spec/controllers/ground_pictures_controller_spec.rb b/spec/controllers/ground_pictures_controller_spec.rb index 9f1c7982..eabcf278 100644 --- a/spec/controllers/ground_pictures_controller_spec.rb +++ b/spec/controllers/ground_pictures_controller_spec.rb @@ -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