OSDN Git Service

add test
[pettanr/pettanr.git] / spec / controllers / licenses_controller_spec.rb
1 # -*- encoding: utf-8 -*-
2 #ライセンス
3 require 'spec_helper'
4
5 describe LicensesController do
6   before do
7     Factory :admin
8     @user = Factory( :user_yas)
9     @author = @user.author
10     @artist = Factory :artist_yas, :author_id => @author.id
11   end
12
13   describe 'システム初期化要請に於いて' do
14     before do
15       @op = Factory :original_picture, :artist_id => @artist.id 
16       sign_in @user
17       OriginalPicture.stub(:list).and_return([@op, @op, @op])
18     end
19     context 'パラメータpageについて' do
20     end
21   end
22 end