OSDN Git Service

t#31301:rename action name
authoryasushiito <yas@pen-chan.jp>
Mon, 27 May 2013 05:11:52 +0000 (14:11 +0900)
committeryasushiito <yas@pen-chan.jp>
Mon, 27 May 2013 05:11:52 +0000 (14:11 +0900)
app/controllers/home_controller.rb
app/views/home/comic.html.erb [deleted file]
app/views/home/ground_color.html.erb [deleted file]
app/views/home/ground_picture.html.erb [deleted file]
app/views/home/index.html.erb
app/views/home/panel.html.erb [deleted file]
app/views/home/panel_color.html.erb [deleted file]
app/views/home/panel_picture.html.erb [deleted file]
app/views/home/resource_picture.html.erb [deleted file]
app/views/home/story.html.erb [deleted file]
spec/controllers/home_controller_spec.rb

index c9b3390..ddc7327 100644 (file)
@@ -2,10 +2,10 @@ class HomeController < ApplicationController
   layout 'test' if MagicNumber['test_layout']
   before_filter :authenticate_user, :only => [
     :index, :show, :profile, :configure, :create_token, :delete_token, 
-    :comic, :story, :panel, :resource_picture, :panel_picture, :panel_color, :ground_picture, :ground_color
+    :comics, :stories, :panels, :resource_pictures, :panel_pictures, :panel_colors, :ground_pictures, :ground_colors
   ]
-  before_filter :authenticate_author, :only => [:comic, :story, :panel, :panel_picture, :panel_color, :ground_picture, :ground_color]
-  before_filter :authenticate_artist, :only => [:resource_picture]
+  before_filter :authenticate_author, :only => [:comics, :stories, :panels, :panel_pictures, :panel_colors, :ground_pictures, :ground_colors]
+  before_filter :authenticate_artist, :only => [:resource_pictures]
   
   def index
   end
@@ -40,7 +40,7 @@ class HomeController < ApplicationController
     end
   end
   
-  def comic
+  def comics
     @page = Author.page params[:page]
     @page_size = Author.comic_page_size params[:page_size]
     @comics = Comic.mylist(@author, @page, @page_size)
@@ -51,7 +51,7 @@ class HomeController < ApplicationController
     end
   end
   
-  def story
+  def stories
     @page = Author.page params[:page]
     @page_size = Author.story_page_size params[:page_size]
     @stories = Story.mylist(@author, @page, @page_size)
@@ -62,7 +62,7 @@ class HomeController < ApplicationController
     end
   end
   
-  def panel
+  def panels
     @page = Author.page params[:page]
     @page_size = Author.panel_page_size params[:page_size]
     @panels = Panel.mylist(@author, @page, @page_size)
@@ -73,7 +73,7 @@ class HomeController < ApplicationController
     end
   end
   
-  def panel_picture
+  def panel_pictures
     @page = Author.page params[:page]
     @page_size = Author.panel_picture_page_size params[:page_size]
     @panel_pictures = PanelPicture.mylist(@author, @page, @page_size)
@@ -84,7 +84,7 @@ class HomeController < ApplicationController
     end
   end
   
-  def panel_color
+  def panel_colors
     @page = Author.page params[:page]
     @page_size = Author.panel_color_page_size params[:page_size]
     @panel_colors = PanelColor.mylist(@author, @page, @page_size)
@@ -95,7 +95,7 @@ class HomeController < ApplicationController
     end
   end
   
-  def ground_picture
+  def ground_pictures
     @page = Author.page params[:page]
     @page_size = Author.ground_picture_page_size params[:page_size]
     @ground_pictures = GroundPicture.mylist(@author, @page, @page_size)
@@ -106,7 +106,7 @@ class HomeController < ApplicationController
     end
   end
   
-  def ground_color
+  def ground_colors
     @page = Author.page params[:page]
     @page_size = Author.ground_color_page_size params[:page_size]
     @ground_colors = GroundColor.mylist(@author, @page, @page_size)
@@ -117,7 +117,7 @@ class HomeController < ApplicationController
     end
   end
   
-  def resource_picture
+  def resource_pictures
     @page = Author.page params[:page]
     @page_size = Author.resource_picture_page_size params[:page_size]
     @resource_pictures = ResourcePicture.mylist(@artist, @page, @page_size)
diff --git a/app/views/home/comic.html.erb b/app/views/home/comic.html.erb
deleted file mode 100644 (file)
index c304a54..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<p id="notice"><%= notice %></p>
-
-<table>
-  <% @comics.each do |comic| %>
-    <%= render 'comics/list_item', :comic => comic, :author => @author %>
-  <% end %>
-</table>
-<%= link_to t('comics.new.title'), new_comic_path %>
diff --git a/app/views/home/ground_color.html.erb b/app/views/home/ground_color.html.erb
deleted file mode 100644 (file)
index 962807e..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'GroundColor.color_id' -%></th>
-    <th><%= t_m 'GroundColor.panel_id' -%></th>
-    <th><%= t_m 'GroundColor.z' -%></th>
-    <th><%= t_m 'GroundColor.updated_at' -%></th>
-  </tr>
-
-  <% @ground_colors.each do |gc| %>
-    <%= render 'ground_colors/list_item', :ground_color => gc, :author => @author %>
-  <% end -%>
-</table>
diff --git a/app/views/home/ground_picture.html.erb b/app/views/home/ground_picture.html.erb
deleted file mode 100644 (file)
index dc5fafc..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'GroundPicture.panel_id' -%></th>
-    <th><%= t_m 'GroundPicture.picture_id' -%></th>
-    <th><%=   -%></th>
-    <th><%= t_m 'GroundPicture.z' -%></th>
-    <th><%= t_m 'GroundPicture.repeat' -%></th>
-    <th><%= t_m 'GroundPicture.x' -%></th>
-    <th><%= t_m 'GroundPicture.y' -%></th>
-    <th><%= t_m 'GroundPicture.created_at' -%></th>
-    <th><%= t_m 'GroundPicture.updated_at' -%></th>
-  </tr>
-
-  <% @ground_pictures.each do |gp| %>
-    <%= render 'list_item', :ground_picture => gp %>
-  <% end -%>
-</table>
index a55e5f0..690e4c3 100644 (file)
@@ -5,13 +5,13 @@
 <table>
   <tr height="100px">
     <td width="200px" align="center" valign="middle">
-      <%= link_to t_m('Comic'), '/home/comic' %>
+      <%= link_to t_m('Comic'), '/home/comics' %>
     </td>
     <td width="200px" align="center" valign="middle">
-      <%= link_to t_m('Story'), '/home/story' %>
+      <%= link_to t_m('Story'), '/home/stories' %>
     </td>
     <td width="200px" align="center" valign="middle">
-      <%= link_to t_m('Panel'), '/home/panel' %>
+      <%= link_to t_m('Panel'), '/home/panels' %>
     </td>
     <td width="200px" align="center" valign="middle">
     </td>
 <table>
   <tr height="100px">
     <td width="200px" align="center" valign="middle">
-      <%= link_to t_m('PanelPicture'), '/home/panel_picture' %>
+      <%= link_to t_m('PanelPicture'), '/home/panel_pictures' %>
     </td>
     <td width="200px" align="center" valign="middle">
-      <%= link_to t_m('GroundPicture'), '/home/ground_picture' %>
+      <%= link_to t_m('GroundPicture'), '/home/ground_pictures' %>
     </td>
     <td width="200px" align="center" valign="middle">
-      <%= link_to t_m('GroundColor'), '/home/ground_color' %>
+      <%= link_to t_m('GroundColor'), '/home/ground_colors' %>
     </td>
     <td width="200px" align="center" valign="middle">
-      <%= link_to t_m('PanelColor'), '/home/panel_color' %>
+      <%= link_to t_m('PanelColor'), '/home/panel_colors' %>
     </td>
   </tr>
 </table>
@@ -43,7 +43,7 @@
         <%= link_to t_m('OriginalPicture'), main_app.original_pictures_path %>
       </td>
       <td width="200px" align="center" valign="middle">
-        <%= link_to t_m('ResourcePicture'), '/home/resource_picture' %>
+        <%= link_to t_m('ResourcePicture'), '/home/resource_pictures' %>
       </td>
       <td width="200px" align="center" valign="middle">
         <%=  %>
diff --git a/app/views/home/panel.html.erb b/app/views/home/panel.html.erb
deleted file mode 100644 (file)
index e95104b..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<p id="notice"><%= notice %></p>
-
-<% @panels.each do |panel| %>
-  <div>
-    <%= render 'panels/standard', :panel => panel, :author => @author %>
-  </div>
-<% end %>
-<%= link_to t('panels.new.title'), new_panel_path %>
diff --git a/app/views/home/panel_color.html.erb b/app/views/home/panel_color.html.erb
deleted file mode 100644 (file)
index 1af79fc..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'PanelColor.panel_id' -%></th>
-    <th><%= t_m 'PanelColor.code' -%></th>
-    <th><%= t_m 'PanelColor.z' -%></th>
-    <th><%= t_m 'PanelColor.created_at' -%></th>
-    <th><%= t_m 'PanelColor.updated_at' -%></th>
-  </tr>
-
-  <% @panel_colors.each do |pc| %>
-    <%= render 'list_item', :panel_color => pc %>
-  <% end -%>
-</table>
diff --git a/app/views/home/panel_picture.html.erb b/app/views/home/panel_picture.html.erb
deleted file mode 100644 (file)
index abd6cf5..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'PanelPicture.picture_id' -%></th>
-    <th><%=  -%></th>
-    <th><%= t_m 'PanelPicture.panel_id' -%></th>
-    <th><%= t_m 'PanelPicture.link' -%></th>
-    <th><%= t_m 'PanelPicture.caption' -%></th>
-    <th><%= t_m 'PanelPicture.updated_at' -%></th>
-  </tr>
-
-<% @panel_pictures.each do |panel_picture| %>
-  <%= render 'panel_pictures/list_item', :panel_picture => panel_picture %>
-<% end %>
-</table>
diff --git a/app/views/home/resource_picture.html.erb b/app/views/home/resource_picture.html.erb
deleted file mode 100644 (file)
index ead33de..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th></th>
-    <th></th>
-    <th><%= t_m 'ResourcePicture.artist_id' -%></th>
-    <th><%= t_m 'ResourcePicture.ext' -%></th>
-    <th><%= t_m 'ResourcePicture.width' -%></th>
-    <th><%= t_m 'ResourcePicture.height' -%></th>
-    <th><%= t_m 'ResourcePicture.filesize' -%></th>
-  </tr>
-<% @resource_pictures.each do |resource_picture| %>
-  <tr>
-    <td>
-      <%= link_to tag(:img, resource_picture.tmb_opt_img_tag), resource_picture_path(resource_picture) %>
-    </td>
-    <td>
-      <%= render resource_picture.credit_template, :picture => resource_picture %>
-    </td>
-    <td>
-      <%= link_to(h(truncate(resource_picture.artist.name, :length => 8)), artist_path(resource_picture.artist)) %>
-    </td>
-    <td>
-      <%= h resource_picture.ext %>
-    </td>
-    <td>
-      <%= resource_picture.width %>px
-    </td>
-    <td>
-      <%= resource_picture.height %>px
-    </td>
-    <td>
-      <%= resource_picture.filesize %>bytes
-    </td>
-  </tr>
-<% end %>
-</table>
diff --git a/app/views/home/story.html.erb b/app/views/home/story.html.erb
deleted file mode 100644 (file)
index 47e0cac..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <% @stories.each do |story| %>
-    <%= render 'stories/list_item', :story => story, :author => @author %>
-  <% end %>
-</table>
-<%= link_to t('stories.new.title'), new_story_path %>
index ac609e4..102c43a 100644 (file)
@@ -27,65 +27,65 @@ if MagicNumber['run_mode'] == 1
     end
     context 'パラメータpageについて' do
       it '@pageに値が入る' do
-        get :comic, :page => 5
+        get :comics, :page => 5
         assigns(:page).should eq 5
       end
       it '省略されると@pageに1値が入る' do
-        get :comic
+        get :comics
         assigns(:page).should eq 1
       end
       it '与えられたpage_sizeがセットされている' do
-        get :comic, :page_size => 15
+        get :comics, :page_size => 15
         assigns(:page_size).should eq 15
       end
       it '省略されると@page_sizeにデフォルト値が入る' do
-        get :comic
+        get :comics
         assigns(:page_size).should eq Author.default_comic_page_size
       end
       it '最大を超えると@page_sizeにデフォルト最大値が入る' do
-        get :comic, :page_size => 1500
+        get :comics, :page_size => 1500
         assigns(:page_size).should eq Author.comic_max_page_size
       end
       it '不正な値が入ると@page_sizeにデフォルト最大値が入る' do
-        get :comic, :page_size => 0
+        get :comics, :page_size => 0
         assigns(:page_size).should eq Author.default_comic_page_size
       end
     end
     context 'つつがなく終わるとき' do
       it 'ステータスコード200 OKを返す' do
-        get :comic
+        get :comics
         response.should be_success 
       end
       it 'コミックモデルに一覧を問い合わせている' do
         Comic.should_receive(:mylist).exactly(1)
-        get :comic
+        get :comics
       end
       it '@comicsにリストを取得している' do
-        get :comic
+        get :comics
         assigns(:comics).should have_at_least(3).items
       end
       context 'html形式' do
         it 'comicテンプレートを描画する' do
-          get :comic
+          get :comics
           response.should render_template("comic")
         end
       end
       context 'json形式' do
         it 'jsonデータを返す' do
-          get :comic, :format => :json
+          get :comics, :format => :json
           lambda{JSON.parse(response.body)}.should_not raise_error(JSON::ParserError)
         end
         it 'コミックモデルにjson一覧出力オプションを問い合わせている' do
           Comic.should_receive(:list_json_opt).exactly(1)
-          get :comic, :format => :json
+          get :comics, :format => :json
         end
         it 'データがリスト構造になっている' do
-          get :comic, :format => :json
+          get :comics, :format => :json
           json = JSON.parse response.body
           json.should have_at_least(3).items
         end
         it 'リストの先頭くらいはコミックっぽいものであって欲しい' do
-          get :comic, :format => :json
+          get :comics, :format => :json
           json = JSON.parse response.body
           json.first.has_key?("title").should be_true
           json.first.has_key?("visible").should be_true
@@ -98,21 +98,21 @@ if MagicNumber['run_mode'] == 1
       end
       context 'html形式' do
         it 'ステータスコード302 Foundを返す' do
-          get :comic
+          get :comics
           response.status.should eq 302
         end
         it 'サインインページへ遷移する' do
-          get :comic
+          get :comics
           response.should redirect_to '/users/sign_in'
         end
       end
       context 'json形式' do
         it 'ステータスコード401 Unauthorizedを返す' do
-          get :comic, :format => :json
+          get :comics, :format => :json
           response.status.should eq 401
         end
         it '応答メッセージにUnauthorizedを返す' do
-          get :comic, :format => :json
+          get :comics, :format => :json
           response.message.should match(/Unauthorized/)
         end
       end
@@ -127,69 +127,69 @@ if MagicNumber['run_mode'] == 1
     end
     context 'パラメータpageについて' do
       it '@pageに値が入る' do
-        get :panel, :page => 5
+        get :panels, :page => 5
         assigns(:page).should eq 5
       end
       it '省略されると@pageに1値が入る' do
-        get :panel
+        get :panels
         assigns(:page).should eq 1
       end
       it '与えられたpage_sizeがセットされている' do
-        get :panel, :page_size => 15
+        get :panels, :page_size => 15
         assigns(:page_size).should eq 15
       end
       it '省略されると@page_sizeにデフォルト値が入る' do
-        get :panel
+        get :panels
         assigns(:page_size).should eq Author.default_panel_page_size
       end
       it '最大を超えると@page_sizeにデフォルト最大値が入る' do
-        get :panel, :page_size => 1500
+        get :panels, :page_size => 1500
         assigns(:page_size).should eq Author.panel_max_page_size
       end
       it '不正な値が入ると@page_sizeにデフォルト最大値が入る' do
-        get :panel, :page_size => 0
+        get :panels, :page_size => 0
         assigns(:page_size).should eq Author.default_panel_page_size
       end
     end
     context 'つつがなく終わるとき' do
       it 'コマモデルに一覧を問い合わせている' do
         Panel.should_receive(:mylist).exactly(1)
-        get :panel
+        get :panels
       end
       it '@panelsにリストを取得している' do
-        get :panel
+        get :panels
         assigns(:panels).should have_at_least(3).items
       end
       context 'html形式' do
         it 'ステータスコード200 OKを返す' do
-          get :panel
+          get :panels
           response.should be_success 
         end
         it 'panelテンプレートを描画する' do
-          get :panel
+          get :panels
           response.should render_template("panel")
         end
       end
       context 'json形式' do
         it 'ステータスコード200 OKを返す' do
-          get :panel, :format => :json
+          get :panels, :format => :json
           response.should be_success 
         end
         it 'jsonデータを返す' do
-          get :panel, :format => :json
+          get :panels, :format => :json
           lambda{JSON.parse(response.body)}.should_not raise_error(JSON::ParserError)
         end
         it 'コマモデルにコマリストのjson出力を問い合わせている' do
           Panel.should_receive(:list_as_json_text).exactly(1)
-          get :panel, :format => :json
+          get :panels, :format => :json
         end
         it 'データがリスト構造になっている' do
-          get :panel, :format => :json
+          get :panels, :format => :json
           json = JSON.parse response.body
           json.should have_at_least(3).items
         end
         it 'リストの先頭くらいはコマっぽいものであって欲しい' do
-          get :panel, :format => :json
+          get :panels, :format => :json
           json = JSON.parse response.body
           json.first.has_key?("z").should be_true
         end
@@ -201,21 +201,21 @@ if MagicNumber['run_mode'] == 1
       end
       context 'html形式' do
         it 'ステータスコード302 Foundを返す' do
-          get :panel
+          get :panels
           response.status.should eq 302
         end
         it 'サインインページへ遷移する' do
-          get :panel
+          get :panels
           response.should redirect_to '/users/sign_in'
         end
       end
       context 'json形式' do
         it 'ステータスコード401 Unauthorizedを返す' do
-          get :panel, :format => :json
+          get :panels, :format => :json
           response.status.should eq 401
         end
         it '応答メッセージにUnauthorizedを返す' do
-          get :panel, :format => :json
+          get :panels, :format => :json
           response.message.should match(/Unauthorized/)
         end
       end
@@ -231,65 +231,65 @@ if MagicNumber['run_mode'] == 1
     end
     context 'パラメータpageについて' do
       it '@pageに値が入る' do
-        get :panel_picture, :page => 5
+        get :panel_pictures, :page => 5
         assigns(:page).should eq 5
       end
       it '省略されると@pageに1値が入る' do
-        get :panel_picture
+        get :panel_pictures
         assigns(:page).should eq 1
       end
       it '与えられたpage_sizeがセットされている' do
-        get :panel_picture, :page_size => 15
+        get :panel_pictures, :page_size => 15
         assigns(:page_size).should eq 15
       end
       it '省略されると@page_sizeにデフォルト値が入る' do
-        get :panel_picture
+        get :panel_pictures
         assigns(:page_size).should eq Author.default_panel_picture_page_size
       end
       it '最大を超えると@page_sizeにデフォルト最大値が入る' do
-        get :panel_picture, :page_size => 1500
+        get :panel_pictures, :page_size => 1500
         assigns(:page_size).should eq Author.panel_picture_max_page_size
       end
       it '不正な値が入ると@page_sizeにデフォルト最大値が入る' do
-        get :panel_picture, :page_size => 0
+        get :panel_pictures, :page_size => 0
         assigns(:page_size).should eq Author.default_panel_picture_page_size
       end
     end
     context 'つつがなく終わるとき' do
       it 'ステータスコード200 OKを返す' do
-        get :panel_picture
+        get :panel_pictures
         response.should be_success 
       end
       it 'コマ絵モデルに一覧を問い合わせている' do
         PanelPicture.should_receive(:mylist).exactly(1)
-        get :panel_picture
+        get :panel_pictures
       end
       it '@panel_picturesにリストを取得している' do
-        get :panel_picture
+        get :panel_pictures
         assigns(:panel_pictures).should have_at_least(3).items
       end
       context 'html形式' do
         it 'panel_pictureテンプレートを描画する' do
-          get :panel_picture
+          get :panel_pictures
           response.should render_template("panel_picture")
         end
       end
       context 'json形式' do
         it 'jsonデータを返す' do
-          get :panel_picture, :format => :json
+          get :panel_pictures, :format => :json
           lambda{JSON.parse(response.body)}.should_not raise_error(JSON::ParserError)
         end
         it 'コマ絵モデルにjson一覧出力オプションを問い合わせている' do
           PanelPicture.should_receive(:list_json_opt).exactly(1)
-          get :panel_picture, :format => :json
+          get :panel_pictures, :format => :json
         end
         it 'データがリスト構造になっている' do
-          get :panel_picture, :format => :json
+          get :panel_pictures, :format => :json
           json = JSON.parse response.body
           json.should have_at_least(3).items
         end
         it 'リストの先頭くらいはコマ絵っぽいものであって欲しい' do
-          get :panel_picture, :format => :json
+          get :panel_pictures, :format => :json
           json = JSON.parse response.body
           json.first.has_key?("link").should be_true
           json.first.has_key?("x").should be_true
@@ -303,21 +303,21 @@ if MagicNumber['run_mode'] == 1
       end
       context 'html形式' do
         it 'ステータスコード302 Foundを返す' do
-          get :panel_picture
+          get :panel_pictures
           response.status.should eq 302
         end
         it 'サインインページへ遷移する' do
-          get :panel_picture
+          get :panel_pictures
           response.should redirect_to '/users/sign_in'
         end
       end
       context 'json形式' do
         it 'ステータスコード401 Unauthorizedを返す' do
-          get :panel_picture, :format => :json
+          get :panel_pictures, :format => :json
           response.status.should eq 401
         end
         it '応答メッセージにUnauthorizedを返す' do
-          get :panel_picture, :format => :json
+          get :panel_pictures, :format => :json
           response.message.should match(/Unauthorized/)
         end
       end
@@ -332,65 +332,65 @@ if MagicNumber['run_mode'] == 1
     end
     context 'パラメータpageについて' do
       it '@pageに値が入る' do
-        get :panel_color, :page => 5
+        get :panel_colors, :page => 5
         assigns(:page).should eq 5
       end
       it '省略されると@pageに1値が入る' do
-        get :panel_color
+        get :panel_colors
         assigns(:page).should eq 1
       end
       it '与えられたpage_sizeがセットされている' do
-        get :panel_color, :page_size => 15
+        get :panel_colors, :page_size => 15
         assigns(:page_size).should eq 15
       end
       it '省略されると@page_sizeにデフォルト値が入る' do
-        get :panel_color
+        get :panel_colors
         assigns(:page_size).should eq Author.default_panel_color_page_size
       end
       it '最大を超えると@page_sizeにデフォルト最大値が入る' do
-        get :panel_color, :page_size => 1500
+        get :panel_colors, :page_size => 1500
         assigns(:page_size).should eq Author.panel_color_max_page_size
       end
       it '不正な値が入ると@page_sizeにデフォルト最大値が入る' do
-        get :panel_color, :page_size => 0
+        get :panel_colors, :page_size => 0
         assigns(:page_size).should eq Author.default_panel_color_page_size
       end
     end
     context 'つつがなく終わるとき' do
       it 'ステータスコード200 OKを返す' do
-        get :panel_color
+        get :panel_colors
         response.should be_success 
       end
       it 'コマの色背景モデルに一覧を問い合わせている' do
         PanelColor.should_receive(:mylist).exactly(1)
-        get :panel_color
+        get :panel_colors
       end
       it '@panel_colorsにリストを取得している' do
-        get :panel_color
+        get :panel_colors
         assigns(:panel_colors).should have_at_least(3).items
       end
       context 'html形式' do
         it 'panel_colorテンプレートを描画する' do
-          get :panel_color
+          get :panel_colors
           response.should render_template("panel_color")
         end
       end
       context 'json形式' do
         it 'jsonデータを返す' do
-          get :panel_color, :format => :json
+          get :panel_colors, :format => :json
           lambda{JSON.parse(response.body)}.should_not raise_error(JSON::ParserError)
         end
         it 'コマの色背景モデルにjson一覧出力オプションを問い合わせている' do
           PanelColor.should_receive(:list_json_opt).exactly(1)
-          get :panel_color, :format => :json
+          get :panel_colors, :format => :json
         end
         it 'データがリスト構造になっている' do
-          get :panel_color, :format => :json
+          get :panel_colors, :format => :json
           json = JSON.parse response.body
           json.should have_at_least(3).items
         end
         it 'リストの先頭くらいはコマの色背景っぽいものであって欲しい' do
-          get :panel_color, :format => :json
+          get :panel_colors, :format => :json
           json = JSON.parse response.body
           json.first.has_key?("panel_id").should be_true
           json.first.has_key?("code").should be_true
@@ -404,21 +404,21 @@ if MagicNumber['run_mode'] == 1
       end
       context 'html形式' do
         it 'ステータスコード302 Foundを返す' do
-          get :panel_color
+          get :panel_colors
           response.status.should eq 302
         end
         it 'サインインページへ遷移する' do
-          get :panel_color
+          get :panel_colors
           response.should redirect_to '/users/sign_in'
         end
       end
       context 'json形式' do
         it 'ステータスコード401 Unauthorizedを返す' do
-          get :panel_color, :format => :json
+          get :panel_colors, :format => :json
           response.status.should eq 401
         end
         it '応答メッセージにUnauthorizedを返す' do
-          get :panel_color, :format => :json
+          get :panel_colors, :format => :json
           response.message.should match(/Unauthorized/)
         end
       end
@@ -433,65 +433,65 @@ if MagicNumber['run_mode'] == 1
     end
     context 'パラメータpageについて' do
       it '@pageに値が入る' do
-        get :ground_picture, :page => 5
+        get :ground_pictures, :page => 5
         assigns(:page).should eq 5
       end
       it '省略されると@pageに1値が入る' do
-        get :ground_picture
+        get :ground_pictures
         assigns(:page).should eq 1
       end
       it '与えられたpage_sizeがセットされている' do
-        get :ground_picture, :page_size => 15
+        get :ground_pictures, :page_size => 15
         assigns(:page_size).should eq 15
       end
       it '省略されると@page_sizeにデフォルト値が入る' do
-        get :ground_picture
+        get :ground_pictures
         assigns(:page_size).should eq Author.default_ground_picture_page_size
       end
       it '最大を超えると@page_sizeにデフォルト最大値が入る' do
-        get :ground_picture, :page_size => 1500
+        get :ground_pictures, :page_size => 1500
         assigns(:page_size).should eq Author.ground_picture_max_page_size
       end
       it '不正な値が入ると@page_sizeにデフォルト最大値が入る' do
-        get :ground_picture, :page_size => 0
+        get :ground_pictures, :page_size => 0
         assigns(:page_size).should eq Author.default_ground_picture_page_size
       end
     end
     context 'つつがなく終わるとき' do
       it 'ステータスコード200 OKを返す' do
-        get :ground_picture
+        get :ground_pictures
         response.should be_success 
       end
       it 'コマの画像背景モデルに一覧を問い合わせている' do
         GroundPicture.should_receive(:mylist).exactly(1)
-        get :ground_picture
+        get :ground_pictures
       end
       it '@ground_picturesにリストを取得している' do
-        get :ground_picture
+        get :ground_pictures
         assigns(:ground_pictures).should have_at_least(3).items
       end
       context 'html形式' do
         it 'ground_pictureテンプレートを描画する' do
-          get :ground_picture
+          get :ground_pictures
           response.should render_template("ground_picture")
         end
       end
       context 'json形式' do
         it 'jsonデータを返す' do
-          get :ground_picture, :format => :json
+          get :ground_pictures, :format => :json
           lambda{JSON.parse(response.body)}.should_not raise_error(JSON::ParserError)
         end
         it 'コマの画像背景モデルにjson一覧出力オプションを問い合わせている' do
           GroundPicture.should_receive(:list_json_opt).exactly(1)
-          get :ground_picture, :format => :json
+          get :ground_pictures, :format => :json
         end
         it 'データがリスト構造になっている' do
-          get :ground_picture, :format => :json
+          get :ground_pictures, :format => :json
           json = JSON.parse response.body
           json.should have_at_least(3).items
         end
         it 'リストの先頭くらいはコマの画像背景っぽいものであって欲しい' do
-          get :ground_picture, :format => :json
+          get :ground_pictures, :format => :json
           json = JSON.parse response.body
           json.first.has_key?("panel_id").should be_true
           json.first.has_key?("picture_id").should be_true
@@ -505,21 +505,21 @@ if MagicNumber['run_mode'] == 1
       end
       context 'html形式' do
         it 'ステータスコード302 Foundを返す' do
-          get :ground_picture
+          get :ground_pictures
           response.status.should eq 302
         end
         it 'サインインページへ遷移する' do
-          get :ground_picture
+          get :ground_pictures
           response.should redirect_to '/users/sign_in'
         end
       end
       context 'json形式' do
         it 'ステータスコード401 Unauthorizedを返す' do
-          get :ground_picture, :format => :json
+          get :ground_pictures, :format => :json
           response.status.should eq 401
         end
         it '応答メッセージにUnauthorizedを返す' do
-          get :ground_picture, :format => :json
+          get :ground_pictures, :format => :json
           response.message.should match(/Unauthorized/)
         end
       end
@@ -534,65 +534,65 @@ if MagicNumber['run_mode'] == 1
     end
     context 'パラメータpageについて' do
       it '@pageに値が入る' do
-        get :ground_color, :page => 5
+        get :ground_colors, :page => 5
         assigns(:page).should eq 5
       end
       it '省略されると@pageに1値が入る' do
-        get :ground_color
+        get :ground_colors
         assigns(:page).should eq 1
       end
       it '与えられたpage_sizeがセットされている' do
-        get :ground_color, :page_size => 15
+        get :ground_colors, :page_size => 15
         assigns(:page_size).should eq 15
       end
       it '省略されると@page_sizeにデフォルト値が入る' do
-        get :ground_color
+        get :ground_colors
         assigns(:page_size).should eq Author.default_ground_color_page_size
       end
       it '最大を超えると@page_sizeにデフォルト最大値が入る' do
-        get :ground_color, :page_size => 1500
+        get :ground_colors, :page_size => 1500
         assigns(:page_size).should eq Author.ground_color_max_page_size
       end
       it '不正な値が入ると@page_sizeにデフォルト最大値が入る' do
-        get :ground_color, :page_size => 0
+        get :ground_colors, :page_size => 0
         assigns(:page_size).should eq Author.default_ground_color_page_size
       end
     end
     context 'つつがなく終わるとき' do
       it 'ステータスコード200 OKを返す' do
-        get :ground_color
+        get :ground_colors
         response.should be_success 
       end
       it '間接背景モデルに一覧を問い合わせている' do
         GroundColor.should_receive(:mylist).exactly(1)
-        get :ground_color
+        get :ground_colors
       end
       it '@ground_colorsにリストを取得している' do
-        get :ground_color
+        get :ground_colors
         assigns(:ground_colors).should have_at_least(3).items
       end
       context 'html形式' do
         it 'ground_colorテンプレートを描画する' do
-          get :ground_color
+          get :ground_colors
           response.should render_template("ground_color")
         end
       end
       context 'json形式' do
         it 'jsonデータを返す' do
-          get :ground_color, :format => :json
+          get :ground_colors, :format => :json
           lambda{JSON.parse(response.body)}.should_not raise_error(JSON::ParserError)
         end
         it '間接背景モデルにjson一覧出力オプションを問い合わせている' do
           GroundColor.should_receive(:list_json_opt).exactly(1)
-          get :ground_color, :format => :json
+          get :ground_colors, :format => :json
         end
         it 'データがリスト構造になっている' do
-          get :ground_color, :format => :json
+          get :ground_colors, :format => :json
           json = JSON.parse response.body
           json.should have_at_least(3).items
         end
         it 'リストの先頭くらいは間接背景っぽいものであって欲しい' do
-          get :ground_color, :format => :json
+          get :ground_colors, :format => :json
           json = JSON.parse response.body
           json.first.has_key?("panel_id").should be_true
           json.first.has_key?("color_id").should be_true
@@ -606,21 +606,21 @@ if MagicNumber['run_mode'] == 1
       end
       context 'html形式' do
         it 'ステータスコード302 Foundを返す' do
-          get :ground_color
+          get :ground_colors
           response.status.should eq 302
         end
         it 'サインインページへ遷移する' do
-          get :ground_color
+          get :ground_colors
           response.should redirect_to '/users/sign_in'
         end
       end
       context 'json形式' do
         it 'ステータスコード401 Unauthorizedを返す' do
-          get :ground_color, :format => :json
+          get :ground_colors, :format => :json
           response.status.should eq 401
         end
         it '応答メッセージにUnauthorizedを返す' do
-          get :ground_color, :format => :json
+          get :ground_colors, :format => :json
           response.message.should match(/Unauthorized/)
         end
       end
@@ -637,65 +637,65 @@ if MagicNumber['run_mode'] == 1
     end
     context 'パラメータpageについて' do
       it '@pageに値が入る' do
-        get :resource_picture, :page => 5
+        get :resource_pictures, :page => 5
         assigns(:page).should eq 5
       end
       it '省略されると@pageに1値が入る' do
-        get :resource_picture
+        get :resource_pictures
         assigns(:page).should eq 1
       end
       it '与えられたpage_sizeがセットされている' do
-        get :resource_picture, :page_size => 15
+        get :resource_pictures, :page_size => 15
         assigns(:page_size).should eq 15
       end
       it '省略されると@page_sizeにデフォルト値が入る' do
-        get :resource_picture
+        get :resource_pictures
         assigns(:page_size).should eq Author.default_resource_picture_page_size
       end
       it '最大を超えると@page_sizeにデフォルト最大値が入る' do
-        get :resource_picture, :page_size => 1500
+        get :resource_pictures, :page_size => 1500
         assigns(:page_size).should eq Author.resource_picture_max_page_size
       end
       it '不正な値が入ると@page_sizeにデフォルト最大値が入る' do
-        get :resource_picture, :page_size => 0
+        get :resource_pictures, :page_size => 0
         assigns(:page_size).should eq Author.default_resource_picture_page_size
       end
     end
     context 'つつがなく終わるとき' do
       it 'ステータスコード200 OKを返す' do
-        get :resource_picture
+        get :resource_pictures
         response.should be_success 
       end
       it '素材モデルに一覧を問い合わせている' do
         ResourcePicture.should_receive(:mylist).exactly(1)
-        get :resource_picture
+        get :resource_pictures
       end
       it '@resource_picturesにリストを取得している' do
-        get :resource_picture
+        get :resource_pictures
         assigns(:resource_pictures).should have_at_least(3).items
       end
       context 'html形式' do
         it 'resource_pictureテンプレートを描画する' do
-          get :resource_picture
+          get :resource_pictures
           response.should render_template("resource_picture")
         end
       end
       context 'json形式' do
         it 'jsonデータを返す' do
-          get :resource_picture, :format => :json
+          get :resource_pictures, :format => :json
           lambda{JSON.parse(response.body)}.should_not raise_error(JSON::ParserError)
         end
         it '素材モデルにjson一覧出力オプションを問い合わせている' do
           ResourcePicture.should_receive(:list_json_opt).exactly(1)
-          get :resource_picture, :format => :json
+          get :resource_pictures, :format => :json
         end
         it 'データがリスト構造になっている' do
-          get :resource_picture, :format => :json
+          get :resource_pictures, :format => :json
           json = JSON.parse response.body
           json.should have_at_least(3).items
         end
         it 'リストの先頭くらいは素材っぽいものであって欲しい' do
-          get :resource_picture, :format => :json
+          get :resource_pictures, :format => :json
           json = JSON.parse response.body
           json.first.has_key?("original_picture_id").should be_true
           json.first.has_key?("license_id").should be_true
@@ -708,21 +708,21 @@ if MagicNumber['run_mode'] == 1
       end
       context 'html形式' do
         it 'ステータスコード302 Foundを返す' do
-          get :resource_picture
+          get :resource_pictures
           response.status.should eq 302
         end
         it 'サインインページへ遷移する' do
-          get :resource_picture
+          get :resource_pictures
           response.should redirect_to '/users/sign_in'
         end
       end
       context 'json形式' do
         it 'ステータスコード401 Unauthorizedを返す' do
-          get :resource_picture, :format => :json
+          get :resource_pictures, :format => :json
           response.status.should eq 401
         end
         it '応答メッセージにUnauthorizedを返す' do
-          get :resource_picture, :format => :json
+          get :resource_pictures, :format => :json
           response.message.should match(/Unauthorized/)
         end
       end
@@ -733,18 +733,18 @@ if MagicNumber['run_mode'] == 1
       end
       context 'html形式' do
         it 'ステータスコード302 Foundを返す' do
-          get :resource_picture
+          get :resource_pictures
           response.status.should eq 302
         end
         it '絵師登録ページへ遷移する' do
-          get :resource_picture
+          get :resource_pictures
           response.should redirect_to new_artist_path
         end
       end
       context 'json形式' do
         it '例外403 forbiddenを返す' do
           lambda{
-            get :resource_picture, :format => :json
+            get :resource_pictures, :format => :json
           }.should raise_error(ActiveRecord::Forbidden)
         end
       end
@@ -760,18 +760,18 @@ else
     end
     context 'つつがなく終わるとき' do
       it 'ステータスコード200 OKを返す' do
-        get :comic
+        get :comics
         response.should be_success 
       end
       context 'html形式' do
         it 'comicテンプレートを描画する' do
-          get :comic
+          get :comics
           response.should render_template("comic")
         end
       end
       context 'json形式' do
         it 'jsonデータを返す' do
-          get :comic, :format => :json
+          get :comics, :format => :json
           lambda{JSON.parse(response.body)}.should_not raise_error(JSON::ParserError)
         end
       end
@@ -782,21 +782,21 @@ else
       end
       context 'html形式' do
         it 'ステータスコード302 Foundを返す' do
-          get :comic
+          get :comics
           response.status.should eq 302
         end
         it 'サインインページへ遷移する' do
-          get :comic
+          get :comics
           response.should redirect_to '/users/sign_in'
         end
       end
       context 'json形式' do
         it 'ステータスコード401 Unauthorizedを返す' do
-          get :comic, :format => :json
+          get :comics, :format => :json
           response.status.should eq 401
         end
         it '応答メッセージにUnauthorizedを返す' do
-          get :comic, :format => :json
+          get :comics, :format => :json
           response.message.should match(/Unauthorized/)
         end
       end
@@ -812,21 +812,21 @@ else
     context 'つつがなく終わるとき' do
       context 'html形式' do
         it 'ステータスコード200 OKを返す' do
-          get :panel
+          get :panels
           response.should be_success 
         end
         it 'panelテンプレートを描画する' do
-          get :panel
+          get :panels
           response.should render_template("panel")
         end
       end
       context 'json形式' do
         it 'ステータスコード200 OKを返す' do
-          get :panel, :format => :json
+          get :panels, :format => :json
           response.should be_success 
         end
         it 'jsonデータを返す' do
-          get :panel, :format => :json
+          get :panels, :format => :json
           lambda{JSON.parse(response.body)}.should_not raise_error(JSON::ParserError)
         end
       end
@@ -837,21 +837,21 @@ else
       end
       context 'html形式' do
         it 'ステータスコード302 Foundを返す' do
-          get :panel
+          get :panels
           response.status.should eq 302
         end
         it 'サインインページへ遷移する' do
-          get :panel
+          get :panels
           response.should redirect_to '/users/sign_in'
         end
       end
       context 'json形式' do
         it 'ステータスコード401 Unauthorizedを返す' do
-          get :panel, :format => :json
+          get :panels, :format => :json
           response.status.should eq 401
         end
         it '応答メッセージにUnauthorizedを返す' do
-          get :panel, :format => :json
+          get :panels, :format => :json
           response.message.should match(/Unauthorized/)
         end
       end
@@ -867,18 +867,18 @@ else
     end
     context 'つつがなく終わるとき' do
       it 'ステータスコード200 OKを返す' do
-        get :panel_picture
+        get :panel_pictures
         response.should be_success 
       end
       context 'html形式' do
         it 'panel_pictureテンプレートを描画する' do
-          get :panel_picture
+          get :panel_pictures
           response.should render_template("panel_picture")
         end
       end
       context 'json形式' do
         it 'jsonデータを返す' do
-          get :panel_picture, :format => :json
+          get :panel_pictures, :format => :json
           lambda{JSON.parse(response.body)}.should_not raise_error(JSON::ParserError)
         end
       end
@@ -889,21 +889,21 @@ else
       end
       context 'html形式' do
         it 'ステータスコード302 Foundを返す' do
-          get :panel_picture
+          get :panel_pictures
           response.status.should eq 302
         end
         it 'サインインページへ遷移する' do
-          get :panel_picture
+          get :panel_pictures
           response.should redirect_to '/users/sign_in'
         end
       end
       context 'json形式' do
         it 'ステータスコード401 Unauthorizedを返す' do
-          get :panel_picture, :format => :json
+          get :panel_pictures, :format => :json
           response.status.should eq 401
         end
         it '応答メッセージにUnauthorizedを返す' do
-          get :panel_picture, :format => :json
+          get :panel_pictures, :format => :json
           response.message.should match(/Unauthorized/)
         end
       end
@@ -918,18 +918,18 @@ else
     end
     context 'つつがなく終わるとき' do
       it 'ステータスコード200 OKを返す' do
-        get :panel_color
+        get :panel_colors
         response.should be_success 
       end
       context 'html形式' do
         it 'panel_colorテンプレートを描画する' do
-          get :panel_color
+          get :panel_colors
           response.should render_template("panel_color")
         end
       end
       context 'json形式' do
         it 'jsonデータを返す' do
-          get :panel_color, :format => :json
+          get :panel_colors, :format => :json
           lambda{JSON.parse(response.body)}.should_not raise_error(JSON::ParserError)
         end
       end
@@ -940,21 +940,21 @@ else
       end
       context 'html形式' do
         it 'ステータスコード302 Foundを返す' do
-          get :panel_color
+          get :panel_colors
           response.status.should eq 302
         end
         it 'サインインページへ遷移する' do
-          get :panel_color
+          get :panel_colors
           response.should redirect_to '/users/sign_in'
         end
       end
       context 'json形式' do
         it 'ステータスコード401 Unauthorizedを返す' do
-          get :panel_color, :format => :json
+          get :panel_colors, :format => :json
           response.status.should eq 401
         end
         it '応答メッセージにUnauthorizedを返す' do
-          get :panel_color, :format => :json
+          get :panel_colors, :format => :json
           response.message.should match(/Unauthorized/)
         end
       end
@@ -969,18 +969,18 @@ else
     end
     context 'つつがなく終わるとき' do
       it 'ステータスコード200 OKを返す' do
-        get :ground_picture
+        get :ground_pictures
         response.should be_success 
       end
       context 'html形式' do
         it 'ground_pictureテンプレートを描画する' do
-          get :ground_picture
+          get :ground_pictures
           response.should render_template("ground_picture")
         end
       end
       context 'json形式' do
         it 'jsonデータを返す' do
-          get :ground_picture, :format => :json
+          get :ground_pictures, :format => :json
           lambda{JSON.parse(response.body)}.should_not raise_error(JSON::ParserError)
         end
       end
@@ -991,21 +991,21 @@ else
       end
       context 'html形式' do
         it 'ステータスコード302 Foundを返す' do
-          get :ground_picture
+          get :ground_pictures
           response.status.should eq 302
         end
         it 'サインインページへ遷移する' do
-          get :ground_picture
+          get :ground_pictures
           response.should redirect_to '/users/sign_in'
         end
       end
       context 'json形式' do
         it 'ステータスコード401 Unauthorizedを返す' do
-          get :ground_picture, :format => :json
+          get :ground_pictures, :format => :json
           response.status.should eq 401
         end
         it '応答メッセージにUnauthorizedを返す' do
-          get :ground_picture, :format => :json
+          get :ground_pictures, :format => :json
           response.message.should match(/Unauthorized/)
         end
       end
@@ -1020,18 +1020,18 @@ else
     end
     context 'つつがなく終わるとき' do
       it 'ステータスコード200 OKを返す' do
-        get :ground_color
+        get :ground_colors
         response.should be_success 
       end
       context 'html形式' do
         it 'ground_colorテンプレートを描画する' do
-          get :ground_color
+          get :ground_colors
           response.should render_template("ground_color")
         end
       end
       context 'json形式' do
         it 'jsonデータを返す' do
-          get :ground_color, :format => :json
+          get :ground_colors, :format => :json
           lambda{JSON.parse(response.body)}.should_not raise_error(JSON::ParserError)
         end
       end
@@ -1042,21 +1042,21 @@ else
       end
       context 'html形式' do
         it 'ステータスコード302 Foundを返す' do
-          get :ground_color
+          get :ground_colors
           response.status.should eq 302
         end
         it 'サインインページへ遷移する' do
-          get :ground_color
+          get :ground_colors
           response.should redirect_to '/users/sign_in'
         end
       end
       context 'json形式' do
         it 'ステータスコード401 Unauthorizedを返す' do
-          get :ground_color, :format => :json
+          get :ground_colors, :format => :json
           response.status.should eq 401
         end
         it '応答メッセージにUnauthorizedを返す' do
-          get :ground_color, :format => :json
+          get :ground_colors, :format => :json
           response.message.should match(/Unauthorized/)
         end
       end
@@ -1073,18 +1073,18 @@ else
     end
     context 'つつがなく終わるとき' do
       it 'ステータスコード200 OKを返す' do
-        get :resource_picture
+        get :resource_pictures
         response.should be_success 
       end
       context 'html形式' do
         it 'resource_pictureテンプレートを描画する' do
-          get :resource_picture
+          get :resource_pictures
           response.should render_template("resource_picture")
         end
       end
       context 'json形式' do
         it 'jsonデータを返す' do
-          get :resource_picture, :format => :json
+          get :resource_pictures, :format => :json
           lambda{JSON.parse(response.body)}.should_not raise_error(JSON::ParserError)
         end
       end
@@ -1095,21 +1095,21 @@ else
       end
       context 'html形式' do
         it 'ステータスコード302 Foundを返す' do
-          get :resource_picture
+          get :resource_pictures
           response.status.should eq 302
         end
         it 'サインインページへ遷移する' do
-          get :resource_picture
+          get :resource_pictures
           response.should redirect_to '/users/sign_in'
         end
       end
       context 'json形式' do
         it 'ステータスコード401 Unauthorizedを返す' do
-          get :resource_picture, :format => :json
+          get :resource_pictures, :format => :json
           response.status.should eq 401
         end
         it '応答メッセージにUnauthorizedを返す' do
-          get :resource_picture, :format => :json
+          get :resource_pictures, :format => :json
           response.message.should match(/Unauthorized/)
         end
       end
@@ -1120,18 +1120,18 @@ else
       end
       context 'html形式' do
         it 'ステータスコード302 Foundを返す' do
-          get :resource_picture
+          get :resource_pictures
           response.status.should eq 302
         end
         it '絵師登録ページへ遷移する' do
-          get :resource_picture
+          get :resource_pictures
           response.should redirect_to new_artist_path
         end
       end
       context 'json形式' do
         it '例外403 forbiddenを返す' do
           lambda{
-            get :resource_picture, :format => :json
+            get :resource_pictures, :format => :json
           }.should raise_error(ActiveRecord::Forbidden)
         end
       end