OSDN Git Service

t#29174#28986:license gemnized
[pettanr/pettanr.git] / spec / controllers / original_picture_license_groups_controller_spec.rb
index 9791a6c..598fa8a 100644 (file)
@@ -9,7 +9,7 @@ describe OriginalPictureLicenseGroupsController do
     @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
@@ -143,7 +143,7 @@ describe OriginalPictureLicenseGroupsController do
       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
@@ -176,7 +176,7 @@ describe OriginalPictureLicenseGroupsController do
         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
@@ -186,7 +186,7 @@ describe OriginalPictureLicenseGroupsController 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