OSDN Git Service

fix local mani
[pettanr/pettanr.git] / spec / local_manifests / folder_spec.rb
index 1d0b5dc..877c964 100644 (file)
@@ -1,6 +1,6 @@
 # -*- encoding: utf-8 -*-
 require 'spec_helper'
-# ã\83\9eã\83\8bã\83\95ã\82§ã\82¹ã\83\88
+# ã\83\95ã\82©ã\83«ã\83\80
 
 describe Folder do
   include LocalManifestsMacros
@@ -35,7 +35,7 @@ describe Folder do
           expect(@face.type).to eq 'image'
         end
         it 'マニフェストから設定を取り出している' do
-          expect(@face.url).to eq '/images/scroll.gif'
+          expect(@face.url).to eq '/images/folder.gif'
         end
       end
       describe 'linkに於いて' do
@@ -49,7 +49,7 @@ describe Folder do
           expect(@link.action_name).to eq 'show'
         end
         it 'サポート機能が動作している' do
-          expect(@link.action_path).to eq '/scrolls/'
+          expect(@link.action_path).to eq '/folders/'
         end
       end
     end
@@ -68,10 +68,10 @@ describe Folder do
           @face = @caption.face
         end
         it 'columnタイプのfaceである' do
-          expect(@face.type).to eq 'column'
+          expect(@face.type).to eq 'method'
         end
         it 'マニフェストから設定を取り出している' do
-          expect(@face.column_name).to eq 'title'
+          expect(@face.method_name).to eq 'caption'
         end
       end
       describe 'linkに於いて' do
@@ -82,10 +82,10 @@ describe Folder do
           expect(@link.type).to eq 'action'
         end
         it 'マニフェストから設定を取り出している' do
-          expect(@link.action_name).to eq 'play'
+          expect(@link.action_name).to eq 'show'
         end
         it 'サポート機能が動作している' do
-          expect(@link.action_path).to eq '/scrolls/play/'
+          expect(@link.action_path).to eq '/folders/'
         end
       end
     end
@@ -145,53 +145,106 @@ describe Folder do
     describe 'columnsに於いて' do
       before do
         @columns = @my_local_manifest.columns
-        @names = ['id', 'title', 'description', 'visible', 'author_id', 'created_at', 'updated_at']
+        @names = ['id', 'name', 'controller_name', 'action_name', 'category_id',
+        't', 'parent_id', 'lft', 'rgt', 'depth', 'created_at', 'updated_at']
       end
       it 'これらのカラムが定義されている' do
         set_columns? @columns, @names
       end
-      describe 'titleに於いて' do
+      describe 'nameに於いて' do
         before do
-          @column = @columns['title']
+          @column = @columns['name']
         end
         it 'defaultタイプのcolumnである' do
           expect(@column.type).to eq 'default'
         end
         it 'マニフェストから設定を取り出している' do
-          expect(@column.item_name).to eq 'scroll'
+          expect(@column.item_name).to eq 'folder'
+        end
+      end
+      describe 'controller_nameに於いて' do
+        before do
+          @column = @columns['controller_name']
+        end
+        it 'defaultタイプのcolumnである' do
+          expect(@column.type).to eq 'default'
+        end
+        it 'マニフェストから設定を取り出している' do
+          expect(@column.item_name).to eq 'folder'
+        end
+      end
+      describe 'action_nameに於いて' do
+        before do
+          @column = @columns['action_name']
+        end
+        it 'マニフェストから設定を取り出している' do
+          expect(@column.item_name).to eq 'folder'
         end
       end
-      describe 'descriptionに於いて' do
+      describe 'category_idに於いて' do
         before do
-          @column = @columns['description']
+          @column = @columns['category_id']
         end
         it 'defaultタイプのcolumnである' do
           expect(@column.type).to eq 'default'
         end
         it 'マニフェストから設定を取り出している' do
-          expect(@column.item_name).to eq 'scroll'
+          expect(@column.item_name).to eq 'folder'
         end
       end
-      describe 'visibleに於いて' do
+      describe 'tに於いて' do
         before do
-          @column = @columns['visible']
+          @column = @columns['t']
         end
-        it 'sourceタイプのcolumnである' do
-          expect(@column.type).to eq 'source'
+        it 'defaultタイプのcolumnである' do
+          expect(@column.type).to eq 'default'
         end
         it 'マニフェストから設定を取り出している' do
-          expect(@column.item_name).to eq 'scroll'
+          expect(@column.item_name).to eq 'folder'
         end
       end
-      describe 'author_idに於いて' do
+      describe 'parent_idに於いて' do
         before do
-          @column = @columns['author_id']
+          @column = @columns['parent_id']
         end
         it 'defaultタイプのcolumnである' do
           expect(@column.type).to eq 'default'
         end
         it 'マニフェストから設定を取り出している' do
-          expect(@column.item_name).to eq 'scroll'
+          expect(@column.item_name).to eq 'folder'
+        end
+      end
+      describe 'lftに於いて' do
+        before do
+          @column = @columns['lft']
+        end
+        it 'defaultタイプのcolumnである' do
+          expect(@column.type).to eq 'default'
+        end
+        it 'マニフェストから設定を取り出している' do
+          expect(@column.item_name).to eq 'folder'
+        end
+      end
+      describe 'rgtに於いて' do
+        before do
+          @column = @columns['rgt']
+        end
+        it 'defaultタイプのcolumnである' do
+          expect(@column.type).to eq 'default'
+        end
+        it 'マニフェストから設定を取り出している' do
+          expect(@column.item_name).to eq 'folder'
+        end
+      end
+      describe 'depthに於いて' do
+        before do
+          @column = @columns['depth']
+        end
+        it 'defaultタイプのcolumnである' do
+          expect(@column.type).to eq 'default'
+        end
+        it 'マニフェストから設定を取り出している' do
+          expect(@column.item_name).to eq 'folder'
         end
       end
     end
@@ -200,10 +253,11 @@ describe Folder do
         @column_names = @my_local_manifest.column_names
       end
       it '数量が守られている' do
-        expect(@column_names.size).to eq 4 + 3
+        expect(@column_names.size).to eq 9 + 3
       end
       it '順序が守られている' do
-        expect(@column_names).to eq ['id', 'title', 'description', 'visible', 'author_id', 'created_at', 'updated_at']
+        expect(@column_names).to eq ['id', 'name', 'controller_name', 'action_name', 'category_id',
+        't', 'parent_id', 'lft', 'rgt', 'depth', 'created_at', 'updated_at']
       end
     end
     describe 'extend_settingsに於いて' do
@@ -231,19 +285,7 @@ describe Folder do
           @belongs_to = @associations.belongs_to
         end
         it 'これらの所属モデルを取り扱う' do
-          expect(@belongs_to.map {|a| a.name}).to eq ['author']
-        end
-        describe 'authorに於いて' do
-          before do
-            @mani = @belongs_to[0]
-          end
-          it 'マニフェストから設定を取り出している' do
-            expect(@mani.name).to eq 'author'
-            expect(@mani.model_name).to eq 'author'
-          end
-          it 'サポート機能が動作している' do
-            expect(@mani.model).to eq Author
-          end
+          expect(@belongs_to.map {|a| a.name}).to eq []
         end
       end
       describe 'has_manyに於いて' do
@@ -251,33 +293,7 @@ describe Folder do
           @has_many = @associations.has_many
         end
         it 'これらの所持モデルを取り扱う' do
-          expect(@has_many.map {|a| a.table_name}).to eq ['scroll_panels', 'panels']
-        end
-        describe 'scroll_panelsに於いて' do
-          before do
-            @mani = @has_many[0]
-          end
-          it 'マニフェストから設定を取り出している' do
-            expect(@mani.name).to eq 'scroll_panels.by_scroll'
-            expect(@mani.model_name).to eq 'scroll_panel'
-            expect(@mani.list_name).to eq 'by_scroll'
-          end
-          it 'サポート機能が動作している' do
-            expect(@mani.model).to eq ScrollPanel
-          end
-        end
-        describe 'panels.by_scrollに於いて' do
-          before do
-            @mani = @has_many[1]
-          end
-          it 'マニフェストから設定を取り出している' do
-            expect(@mani.name).to eq 'panels.by_scroll'
-            expect(@mani.model_name).to eq 'panel'
-            expect(@mani.list_name).to eq 'by_scroll'
-          end
-          it 'サポート機能が動作している' do
-            expect(@mani.model).to eq Panel
-          end
+          expect(@has_many.map {|a| a.table_name}).to eq []
         end
       end
     end
@@ -295,7 +311,7 @@ describe Folder do
         @lists = @my_local_manifest.lists
       end
       it 'これらのリストを定義している' do
-        set_lists? @lists, ['public', 'private', 'by_author', 'by_panel']
+        set_lists? @lists, ['public']
       end
       describe 'publicに於いて' do
         before do
@@ -305,7 +321,7 @@ describe Folder do
           expect(@mani.type).to eq 'public'
         end
         it 'マニフェストから設定を取り出している' do
-          expect(@mani.model).to eq Scroll
+          expect(@mani.model).to eq Folder
         end
         it 'サポート機能が動作している' do
           expect(@mani.has_id?).to be nil
@@ -322,10 +338,10 @@ describe Folder do
           it 'サポート機能が動作している' do
             expect(@where.item_name).to eq @model.item_name
             expect(@where.list_name).to eq 'public'
-            expect(@where.model).to eq Scroll
+            expect(@where.model).to eq Folder
           end
           it 'method_name' do
-            expect(@where.method_name).to eq 'public_list_where'
+            expect(@where.method_name).to eq 'list_where'
           end
         end
         describe 'includesに於いて' do
@@ -338,7 +354,7 @@ describe Folder do
           it 'サポート機能が動作している' do
             expect(@includes.item_name).to eq @model.item_name
             expect(@includes.list_name).to eq 'public'
-            expect(@includes.model).to eq Scroll
+            expect(@includes.model).to eq Folder
           end
           it 'includes' do
             expect(@includes.includes).to be_empty
@@ -354,7 +370,7 @@ describe Folder do
           it 'サポート機能が動作している' do
             expect(@order.item_name).to eq @model.item_name
             expect(@order.list_name).to eq 'public'
-            expect(@order.model).to eq Scroll
+            expect(@order.model).to eq Folder
           end
           it 'order' do
             expect(@order.order).to eq 'list_order'
@@ -377,7 +393,7 @@ describe Folder do
       end
       # 細かいチェックは後でやるので、大雑把に数量だけチェックしておく。
       it '数量が守られている' do
-        expect(@fields.size).to eq 5
+        expect(@fields.size).to eq 10
       end
     end
     describe 'field_namesに於いて' do
@@ -385,10 +401,11 @@ describe Folder do
         @field_names = @my_local_manifest.field_names
       end
       it '数量が守られている' do
-        expect(@field_names.size).to eq 5
+        expect(@field_names.size).to eq 10
       end
       it '順序が守られている' do
-        expect(@field_names).to eq ['title', 'description', 'visible', 'id', 'author_id']
+        expect(@field_names).to eq ['name', 'controller_name', 'action_name', 'category_id',
+        't', 'parent_id', 'lft', 'rgt', 'depth', 'id']
       end
     end
     # 処理順に並べられたフィールドのこと
@@ -396,23 +413,25 @@ describe Folder do
     describe 'ordered_fieldsに於いて' do
       before do
         @ordered_fields = @my_local_manifest.ordered_fields
-        @names = ['title', 'description', 'visible', 'id', 'author_id']
+        @names = ['name', 'controller_name', 'action_name', 'category_id',
+        't', 'parent_id', 'lft', 'rgt', 'depth', 'id']
       end
       it 'これらのフィールドを取り扱う' do
         expect(@ordered_fields.map {|f| f.name }).to eq @names
       end
-      describe 'titleに於いて' do
+      describe 'nameに於いて' do
         before do
           @field = @ordered_fields[0]
         end
         it 'マニフェストから設定を取り出している' do
-          expect(@field.name).to eq 'title'
+          expect(@field.name).to eq 'name'
+          # default: true
           expect(@field.row_break).to be true
         end
         it 'サポート機能が動作している' do
           expect(@field.part?).to be false
           expect(@field.form_name).to eq @model.item_name
-          expect(@field.column_name).to eq 'title'
+          expect(@field.column_name).to eq 'name'
           expect(@field.model_name).to eq @model.item_name
         end
         describe 'labelに於いて' do
@@ -423,13 +442,14 @@ describe Folder do
             expect(@label.type).to eq 'default'
           end
           it 'マニフェストから設定を取り出している' do
-            expect(@label.row_break).to be true
+            # default: false
+            expect(@label.row_break).to be false
           end
           it 'サポート機能が動作している' do
             expect(@label.form_name).to eq @model.item_name
-            expect(@label.field_name).to eq 'title'
+            expect(@label.field_name).to eq 'name'
             expect(@label.model_name).to eq @model.item_name
-            expect(@label.column_name).to eq 'title'
+            expect(@label.column_name).to eq 'name'
           end
         end
         describe 'tagに於いて' do
@@ -437,6 +457,7 @@ describe Folder do
             @tag = @field.tag
           end
           it 'textタイプである' do
+            # text/number/text_area/select/hidden default: text
             expect(@tag.type).to eq 'text'
           end
           it 'マニフェストから設定を取り出している' do
@@ -445,67 +466,430 @@ describe Folder do
           end
           it 'サポート機能が動作している' do
             expect(@tag.form_name).to eq @model.item_name
-            expect(@tag.field_name).to eq 'title'
+            expect(@tag.field_name).to eq 'name'
           end
         end
       end
-      describe 'descriptionに於いて' do
+      describe 'controller_nameに於いて' do
         before do
           @field = @ordered_fields[1]
         end
         it 'マニフェストから設定を取り出している' do
-          expect(@field.name).to eq 'description'
+          expect(@field.name).to eq 'controller_name'
+          # default: true
           expect(@field.row_break).to be true
         end
         it 'サポート機能が動作している' do
           expect(@field.part?).to be false
           expect(@field.form_name).to eq @model.item_name
-          expect(@field.column_name).to eq 'description'
+          expect(@field.column_name).to eq 'controller_name'
           expect(@field.model_name).to eq @model.item_name
         end
+        describe 'labelに於いて' do
+          before do
+            @label = @field.label
+          end
+          it 'defaultタイプである' do
+            expect(@label.type).to eq 'default'
+          end
+          it 'マニフェストから設定を取り出している' do
+            # default: false
+            expect(@label.row_break).to be false
+          end
+          it 'サポート機能が動作している' do
+            expect(@label.form_name).to eq @model.item_name
+            expect(@label.field_name).to eq 'controller_name'
+            expect(@label.model_name).to eq @model.item_name
+            expect(@label.column_name).to eq 'controller_name'
+          end
+        end
+        describe 'tagに於いて' do
+          before do
+            @tag = @field.tag
+          end
+          it 'textタイプである' do
+            # text/number/text_area/select/hidden default: text
+            expect(@tag.type).to eq 'text'
+          end
+          it 'マニフェストから設定を取り出している' do
+            expect(@tag.options).to_not be_empty
+            expect(@tag.options['size']).to eq 20
+          end
+          it 'サポート機能が動作している' do
+            expect(@tag.form_name).to eq @model.item_name
+            expect(@tag.field_name).to eq 'controller_name'
+          end
+        end
       end
-      describe 'visibleに於いて' do
+      describe 'action_nameに於いて' do
         before do
           @field = @ordered_fields[2]
         end
         it 'マニフェストから設定を取り出している' do
-          expect(@field.name).to eq 'visible'
+          expect(@field.name).to eq 'action_name'
+          # default: true
           expect(@field.row_break).to be true
         end
         it 'サポート機能が動作している' do
           expect(@field.part?).to be false
           expect(@field.form_name).to eq @model.item_name
-          expect(@field.column_name).to eq 'visible'
+          expect(@field.column_name).to eq 'action_name'
           expect(@field.model_name).to eq @model.item_name
         end
+        describe 'labelに於いて' do
+          before do
+            @label = @field.label
+          end
+          it 'defaultタイプである' do
+            expect(@label.type).to eq 'default'
+          end
+          it 'マニフェストから設定を取り出している' do
+            # default: false
+            expect(@label.row_break).to be false
+          end
+          it 'サポート機能が動作している' do
+            expect(@label.form_name).to eq @model.item_name
+            expect(@label.field_name).to eq 'action_name'
+            expect(@label.model_name).to eq @model.item_name
+            expect(@label.column_name).to eq 'action_name'
+          end
+        end
+        describe 'tagに於いて' do
+          before do
+            @tag = @field.tag
+          end
+          it 'textタイプである' do
+            # text/number/text_area/select/hidden default: text
+            expect(@tag.type).to eq 'text'
+          end
+          it 'マニフェストから設定を取り出している' do
+            expect(@tag.options).to_not be_empty
+            expect(@tag.options['size']).to eq 20
+          end
+          it 'サポート機能が動作している' do
+            expect(@tag.form_name).to eq @model.item_name
+            expect(@tag.field_name).to eq 'action_name'
+          end
+        end
       end
-      describe 'idに於いて' do
+      describe 'category_idに於いて' do
         before do
           @field = @ordered_fields[3]
         end
         it 'マニフェストから設定を取り出している' do
-          expect(@field.name).to eq 'id'
+          expect(@field.name).to eq 'category_id'
+          # default: true
           expect(@field.row_break).to be true
         end
         it 'サポート機能が動作している' do
           expect(@field.part?).to be false
           expect(@field.form_name).to eq @model.item_name
-          expect(@field.column_name).to eq 'id'
+          expect(@field.column_name).to eq 'category_id'
           expect(@field.model_name).to eq @model.item_name
         end
+        describe 'labelに於いて' do
+          before do
+            @label = @field.label
+          end
+          it 'defaultタイプである' do
+            expect(@label.type).to eq 'default'
+          end
+          it 'マニフェストから設定を取り出している' do
+            # default: false
+            expect(@label.row_break).to be false
+          end
+          it 'サポート機能が動作している' do
+            expect(@label.form_name).to eq @model.item_name
+            expect(@label.field_name).to eq 'category_id'
+            expect(@label.model_name).to eq @model.item_name
+            expect(@label.column_name).to eq 'category_id'
+          end
+        end
+        describe 'tagに於いて' do
+          before do
+            @tag = @field.tag
+          end
+          it 'textタイプである' do
+            # text/number/text_area/select/hidden default: text
+            expect(@tag.type).to eq 'number'
+          end
+          it 'マニフェストから設定を取り出している' do
+            expect(@tag.options).to_not be_empty
+            expect(@tag.options['size']).to eq 5
+          end
+          it 'サポート機能が動作している' do
+            expect(@tag.form_name).to eq @model.item_name
+            expect(@tag.field_name).to eq 'category_id'
+          end
+        end
       end
-      describe 'author_idに於いて' do
+      describe 'tに於いて' do
         before do
           @field = @ordered_fields[4]
         end
         it 'マニフェストから設定を取り出している' do
-          expect(@field.name).to eq 'author_id'
+          expect(@field.name).to eq 't'
+          # default: true
+          expect(@field.row_break).to be true
+        end
+        it 'サポート機能が動作している' do
+          expect(@field.part?).to be false
+          expect(@field.form_name).to eq @model.item_name
+          expect(@field.column_name).to eq 't'
+          expect(@field.model_name).to eq @model.item_name
+        end
+        describe 'labelに於いて' do
+          before do
+            @label = @field.label
+          end
+          it 'defaultタイプである' do
+            expect(@label.type).to eq 'default'
+          end
+          it 'マニフェストから設定を取り出している' do
+            # default: false
+            expect(@label.row_break).to be false
+          end
+          it 'サポート機能が動作している' do
+            expect(@label.form_name).to eq @model.item_name
+            expect(@label.field_name).to eq 't'
+            expect(@label.model_name).to eq @model.item_name
+            expect(@label.column_name).to eq 't'
+          end
+        end
+        describe 'tagに於いて' do
+          before do
+            @tag = @field.tag
+          end
+          it 'textタイプである' do
+            # text/number/text_area/select/hidden default: text
+            expect(@tag.type).to eq 'number'
+          end
+          it 'マニフェストから設定を取り出している' do
+            expect(@tag.options).to_not be_empty
+            expect(@tag.options['size']).to eq 5
+          end
+          it 'サポート機能が動作している' do
+            expect(@tag.form_name).to eq @model.item_name
+            expect(@tag.field_name).to eq 't'
+          end
+        end
+      end
+      describe 'parent_idに於いて' do
+        before do
+          @field = @ordered_fields[5]
+        end
+        it 'マニフェストから設定を取り出している' do
+          expect(@field.name).to eq 'parent_id'
+          # default: true
+          expect(@field.row_break).to be true
+        end
+        it 'サポート機能が動作している' do
+          expect(@field.part?).to be false
+          expect(@field.form_name).to eq @model.item_name
+          expect(@field.column_name).to eq 'parent_id'
+          expect(@field.model_name).to eq @model.item_name
+        end
+        describe 'labelに於いて' do
+          before do
+            @label = @field.label
+          end
+          it 'defaultタイプである' do
+            expect(@label.type).to eq 'default'
+          end
+          it 'マニフェストから設定を取り出している' do
+            # default: false
+            expect(@label.row_break).to be false
+          end
+          it 'サポート機能が動作している' do
+            expect(@label.form_name).to eq @model.item_name
+            expect(@label.field_name).to eq 'parent_id'
+            expect(@label.model_name).to eq @model.item_name
+            expect(@label.column_name).to eq 'parent_id'
+          end
+        end
+        describe 'tagに於いて' do
+          before do
+            @tag = @field.tag
+          end
+          it 'textタイプである' do
+            # text/number/text_area/select/hidden default: text
+            expect(@tag.type).to eq 'number'
+          end
+          it 'マニフェストから設定を取り出している' do
+            expect(@tag.options).to_not be_empty
+            expect(@tag.options['size']).to eq 5
+          end
+          it 'サポート機能が動作している' do
+            expect(@tag.form_name).to eq @model.item_name
+            expect(@tag.field_name).to eq 'parent_id'
+          end
+        end
+      end
+      describe 'lftに於いて' do
+        before do
+          @field = @ordered_fields[6]
+        end
+        it 'マニフェストから設定を取り出している' do
+          expect(@field.name).to eq 'lft'
+          # default: true
           expect(@field.row_break).to be true
         end
         it 'サポート機能が動作している' do
           expect(@field.part?).to be false
           expect(@field.form_name).to eq @model.item_name
-          expect(@field.column_name).to eq 'author_id'
+          expect(@field.column_name).to eq 'lft'
+          expect(@field.model_name).to eq @model.item_name
+        end
+        describe 'labelに於いて' do
+          before do
+            @label = @field.label
+          end
+          it 'defaultタイプである' do
+            expect(@label.type).to eq 'default'
+          end
+          it 'マニフェストから設定を取り出している' do
+            # default: false
+            expect(@label.row_break).to be false
+          end
+          it 'サポート機能が動作している' do
+            expect(@label.form_name).to eq @model.item_name
+            expect(@label.field_name).to eq 'lft'
+            expect(@label.model_name).to eq @model.item_name
+            expect(@label.column_name).to eq 'lft'
+          end
+        end
+        describe 'tagに於いて' do
+          before do
+            @tag = @field.tag
+          end
+          it 'textタイプである' do
+            # text/number/text_area/select/hidden default: text
+            expect(@tag.type).to eq 'number'
+          end
+          it 'マニフェストから設定を取り出している' do
+            expect(@tag.options).to_not be_empty
+            expect(@tag.options['size']).to eq 5
+          end
+          it 'サポート機能が動作している' do
+            expect(@tag.form_name).to eq @model.item_name
+            expect(@tag.field_name).to eq 'lft'
+          end
+        end
+      end
+      describe 'rgtに於いて' do
+        before do
+          @field = @ordered_fields[7]
+        end
+        it 'マニフェストから設定を取り出している' do
+          expect(@field.name).to eq 'rgt'
+          # default: true
+          expect(@field.row_break).to be true
+        end
+        it 'サポート機能が動作している' do
+          expect(@field.part?).to be false
+          expect(@field.form_name).to eq @model.item_name
+          expect(@field.column_name).to eq 'rgt'
+          expect(@field.model_name).to eq @model.item_name
+        end
+        describe 'labelに於いて' do
+          before do
+            @label = @field.label
+          end
+          it 'defaultタイプである' do
+            expect(@label.type).to eq 'default'
+          end
+          it 'マニフェストから設定を取り出している' do
+            # default: false
+            expect(@label.row_break).to be false
+          end
+          it 'サポート機能が動作している' do
+            expect(@label.form_name).to eq @model.item_name
+            expect(@label.field_name).to eq 'rgt'
+            expect(@label.model_name).to eq @model.item_name
+            expect(@label.column_name).to eq 'rgt'
+          end
+        end
+        describe 'tagに於いて' do
+          before do
+            @tag = @field.tag
+          end
+          it 'textタイプである' do
+            # text/number/text_area/select/hidden default: text
+            expect(@tag.type).to eq 'number'
+          end
+          it 'マニフェストから設定を取り出している' do
+            expect(@tag.options).to_not be_empty
+            expect(@tag.options['size']).to eq 5
+          end
+          it 'サポート機能が動作している' do
+            expect(@tag.form_name).to eq @model.item_name
+            expect(@tag.field_name).to eq 'rgt'
+          end
+        end
+      end
+      describe 'depthに於いて' do
+        before do
+          @field = @ordered_fields[8]
+        end
+        it 'マニフェストから設定を取り出している' do
+          expect(@field.name).to eq 'depth'
+          # default: true
+          expect(@field.row_break).to be true
+        end
+        it 'サポート機能が動作している' do
+          expect(@field.part?).to be false
+          expect(@field.form_name).to eq @model.item_name
+          expect(@field.column_name).to eq 'depth'
+          expect(@field.model_name).to eq @model.item_name
+        end
+        describe 'labelに於いて' do
+          before do
+            @label = @field.label
+          end
+          it 'defaultタイプである' do
+            expect(@label.type).to eq 'default'
+          end
+          it 'マニフェストから設定を取り出している' do
+            # default: false
+            expect(@label.row_break).to be false
+          end
+          it 'サポート機能が動作している' do
+            expect(@label.form_name).to eq @model.item_name
+            expect(@label.field_name).to eq 'depth'
+            expect(@label.model_name).to eq @model.item_name
+            expect(@label.column_name).to eq 'depth'
+          end
+        end
+        describe 'tagに於いて' do
+          before do
+            @tag = @field.tag
+          end
+          it 'textタイプである' do
+            # text/number/text_area/select/hidden default: text
+            expect(@tag.type).to eq 'number'
+          end
+          it 'マニフェストから設定を取り出している' do
+            expect(@tag.options).to_not be_empty
+            expect(@tag.options['size']).to eq 5
+          end
+          it 'サポート機能が動作している' do
+            expect(@tag.form_name).to eq @model.item_name
+            expect(@tag.field_name).to eq 'depth'
+          end
+        end
+      end
+      describe 'idに於いて' do
+        before do
+          @field = @ordered_fields[9]
+        end
+        it 'マニフェストから設定を取り出している' do
+          expect(@field.name).to eq 'id'
+          expect(@field.row_break).to be true
+        end
+        it 'サポート機能が動作している' do
+          expect(@field.part?).to be false
+          expect(@field.form_name).to eq @model.item_name
+          expect(@field.column_name).to eq 'id'
           expect(@field.model_name).to eq @model.item_name
         end
       end