OSDN Git Service

add Picture
[pettanr/pettanr.git] / spec / controllers / original_picture_license_groups_controller_spec.rb
index eb55c72..aa2553c 100644 (file)
@@ -145,6 +145,10 @@ describe OriginalPictureLicenseGroupsController do
         post :create, @attr
         assigns(:ctl).should eq 'original_pictures'
       end
+      it '@original_picture_license_groupにデータを用意している' do
+        post :create, @attr
+        assigns(:original_picture_license_group).should be_a_new OriginalPictureLicenseGroup
+      end
       it 'モデルに検証依頼する' do
         OriginalPictureLicenseGroup.any_instance.stub(:valid?).with(any_args()).and_return(true)
         OriginalPictureLicenseGroup.any_instance.should_receive(:valid?).exactly(1)