OSDN Git Service

fix peta test
[pettanr/pettanr.git] / spec / peta / binder_spec.rb
index bb17296..e91c434 100644 (file)
@@ -50,6 +50,34 @@ describe Comic do
     @author_yas =  @user_yas.author
   end
   
+  describe '生成メソッドに於いて' do
+    before do
+      @item =  FactoryGirl.create :comic_doc_with_comic_stories, author: @author_yas
+    end
+    
+    describe 'leaf_itemsに於いて' do
+      it 'ぶら下がるそれぞれのリーフを取得できる' do
+        define_leaf_items? @item, [ComicStory]
+      end
+    end
+    
+    describe 'leafs_itemsに於いて' do
+      it 'すべてのリーフを取得できる' do
+        define_leafs_items? @item, [ComicStory]
+      end
+    end
+    
+  end
+  
+  describe 'boostに於いて' do
+    before do
+      @item =  FactoryGirl.create :comic_doc_with_comic_stories, author: @author_yas
+    end
+    
+    it 'ブーストメッセージをリーフに伝搬する' do
+    end
+  end
+  
 end
 
 describe Story do
@@ -61,5 +89,33 @@ describe Story do
     @author_yas =  @user_yas.author
   end
   
+  describe '生成メソッドに於いて' do
+    before do
+      @item =  FactoryGirl.create :story_install_with_story_sheets, author: @author_yas
+    end
+    
+    describe 'leaf_itemsに於いて' do
+      it 'ぶら下がるそれぞれのリーフを取得できる' do
+        define_leaf_items? @item, [StorySheet]
+      end
+    end
+    
+    describe 'leafs_itemsに於いて' do
+      it 'すべてのリーフを取得できる' do
+        define_leafs_items? @item, [StorySheet]
+      end
+    end
+    
+  end
+  
+  describe 'boostに於いて' do
+    before do
+      @item =  FactoryGirl.create :story_install, author: @author_yas
+    end
+    
+    it 'ブーストメッセージをリーフに伝搬する' do
+    end
+  end
+  
 end