OSDN Git Service

fix spec
[pettanr/pettanr.git] / spec / peta / owner_spec.rb
1 # -*- encoding: utf-8 -*-
2 require 'spec_helper'
3 #スクロール
4
5 describe Author do
6   include OwnerMacros
7   before do
8     @admin =FactoryGirl.create :admin
9     @user_yas = FactoryGirl.create :user_yas_with_owner
10     @user_rom = FactoryGirl.create :user_rom
11     @author_yas =  @user_yas.author
12   end
13   
14   describe '生成メソッドに於いて' do
15     before do
16       @item =  FactoryGirl.create :scroll_hello_with_scroll_panels, author: @author_yas
17     end
18     
19     describe 'leaf_itemsに於いて' do
20       it 'ぶら下がるそれぞれのリーフを取得できる' do
21         define_leaf_items? @item, [ScrollPanel]
22       end
23     end
24     
25     describe 'leafs_itemsに於いて' do
26       it 'すべてのリーフを取得できる' do
27         define_leafs_items? @item, [ScrollPanel]
28       end
29     end
30     
31   end
32   
33   describe 'boostに於いて' do
34     before do
35       @item =  FactoryGirl.create :scroll_hello_with_scroll_panels, author: @author_yas
36     end
37     
38     it 'ブーストメッセージをリーフに伝搬する' do
39     end
40   end
41   
42 end
43
44 describe Artist do
45   include OwnerMacros
46   before do
47     @admin =FactoryGirl.create :admin
48     @user_yas = FactoryGirl.create :user_yas_with_owner
49     @user_rom = FactoryGirl.create :user_rom
50     @author_yas =  @user_yas.author
51   end
52   
53   describe '生成メソッドに於いて' do
54     before do
55     end
56     
57     describe 'leaf_itemsに於いて' do
58       it 'ぶら下がるそれぞれのリーフを取得できる' do
59         define_leaf_items? @item, [ComicStory]
60       end
61     end
62     
63     describe 'leafs_itemsに於いて' do
64       it 'すべてのリーフを取得できる' do
65         define_leafs_items? @item, [ComicStory]
66       end
67     end
68     
69   end
70   
71   describe 'boostに於いて' do
72     before do
73       @item =  FactoryGirl.create :scroll_hello_with_scroll_panels, author: @author_yas
74     end
75     
76     it 'ブーストメッセージをリーフに伝搬する' do
77     end
78   end
79   
80 end