OSDN Git Service

t#32025:comic rename
[pettanr/pettanr.git] / spec / models / panel_spec.rb
index f9aa572..a1582ee 100644 (file)
@@ -253,9 +253,9 @@ describe Panel do
   \r
   describe '閲覧許可に於いて' do\r
     before do\r
-      @comic = FactoryGirl.create :comic, :author_id => @author.id\r
+      @scroll = FactoryGirl.create :scroll, :author_id => @author.id\r
       @panel = FactoryGirl.create :panel, :author_id => @author.id\r
-      @story = FactoryGirl.create :story, :author_id => @author.id, :comic_id => @comic.id, :panel_id => @panel.id\r
+      @scroll_panel = FactoryGirl.create :scroll_panel, :author_id => @author.id, :scroll_id => @scroll.id, :panel_id => @panel.id\r
     end\r
     context 'オープンモードのとき' do\r
       before do\r
@@ -1418,7 +1418,7 @@ describe Panel do
   \r
   describe '削除に於いて' do\r
     before do\r
-      @comic = FactoryGirl.create :comic, :author_id => @author.id\r
+      @scroll = FactoryGirl.create :scroll, :author_id => @author.id\r
       @panel = FactoryGirl.create :panel, :author_id => @author.id, :publish => 1\r
       @pp = FactoryGirl.create :panel_picture, :panel_id => @panel.id, :t => 1, :width => @p.width, :height => @p.height\r
       @sb = @panel.speech_balloons.build(\r