change aspect to define
This commit is contained in:
parent
57484beb66
commit
20ee527dbd
68 changed files with 218 additions and 218 deletions
|
|
@ -24,7 +24,7 @@ use WebGUI::Test;
|
|||
package WGT::Class::Atset;
|
||||
use WebGUI::Definition::Asset;
|
||||
|
||||
aspect tableName => 'asset';
|
||||
define tableName => 'asset';
|
||||
::dies_ok { property 'property1' => (); } 'must have a fieldType';
|
||||
::dies_ok { property 'property1' => (fieldType => 'text'); } 'must pass either a label or noFormPost flag';
|
||||
::lives_ok { property 'property1' => (
|
||||
|
|
@ -44,7 +44,7 @@ use WebGUI::Test;
|
|||
package WGT::Class::Asset;
|
||||
use WebGUI::Definition::Asset;
|
||||
|
||||
aspect tableName => 'asset';
|
||||
define tableName => 'asset';
|
||||
property 'property2' => (
|
||||
fieldType => 'text',
|
||||
label => 'property2',
|
||||
|
|
@ -138,7 +138,7 @@ use WebGUI::Test;
|
|||
package WGT::Class::AlsoAsset;
|
||||
use WebGUI::Definition::Asset;
|
||||
|
||||
aspect tableName => 'asset';
|
||||
define tableName => 'asset';
|
||||
property 'property1' => (
|
||||
fieldType => 'text',
|
||||
label => 'property1',
|
||||
|
|
@ -156,7 +156,7 @@ use WebGUI::Test;
|
|||
use WebGUI::Definition::Asset;
|
||||
extends 'WGT::Class::AlsoAsset';
|
||||
|
||||
aspect tableName => 'snippet';
|
||||
define tableName => 'snippet';
|
||||
property 'property10' => (
|
||||
fieldType => 'text',
|
||||
label => 'property10',
|
||||
|
|
@ -211,7 +211,7 @@ use WebGUI::Test;
|
|||
use WebGUI::Definition::Asset;
|
||||
extends 'WGT::Class::AlsoAsset';
|
||||
|
||||
aspect tableName => 'snippet';
|
||||
define tableName => 'snippet';
|
||||
property 'property10' => (
|
||||
fieldType => 'text',
|
||||
label => 'property10',
|
||||
|
|
@ -237,7 +237,7 @@ use WebGUI::Test;
|
|||
use WebGUI::Definition::Asset;
|
||||
extends 'WGT::Class::AlsoAsset';
|
||||
|
||||
aspect tableName => 'tertius';
|
||||
define tableName => 'tertius';
|
||||
property 'defaulted' => (
|
||||
fieldType => 'text',
|
||||
label => 'defaulted',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue