@author = @user.author
@artist = FactoryGirl.create :artist_yas, :author_id => @author.id
@sp = FactoryGirl.create :system_picture
- @lg = FactoryGirl.create :license_group, :classname => 'OriginalPicture'
+ @lg = FactoryGirl.create :license_group, :classname => 'StandardLicense'
@license = FactoryGirl.create :license, :license_group_id => @lg.id, :system_picture_id => @sp.id
@op = FactoryGirl.create :original_picture, :artist_id => @artist.id
end
end
it '@ctlにコントローラを用意している' do
post :create, @attr
- assigns(:ctl).should eq 'original_pictures'
+ assigns(:ctl).should eq 'standard_licenses'
end
it '@original_picture_license_groupにデータを用意している' do
post :create, @attr
end
it 'ライセンスクラスの新規作成テンプレートnewを描画する' do
post :create, @attr
- response.should render_template("original_pictures/new")
+ response.should render_template("standard_licenses/attributes/new")
end
end
context 'js形式' do
end
it 'ライセンスクラスの新規作成部分テンプレートnew.jsを描画する' do
post :create, @attrj
- response.should render_template("original_pictures/new")
+ response.should render_template("standard_licenses/attributes/new")
end
end
end