Fix default for tests in Survey::Test. Also change usage of create to new in the test for ::Test.

This commit is contained in:
Colin Kuskie 2010-11-10 14:39:12 -08:00
parent fe3ff23ccf
commit 50d92f9113
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ property test => (
"test": {
"variable1": "yes",
"next": "section2",
);
}
},
]
END_SPEC

View file

@ -152,7 +152,7 @@ cmp_deeply(
'surveyOrderIndex correct'
);
my $t1 = WebGUI::Asset::Wobject::Survey::Test->create( $session, { assetId => $s->getId } );
my $t1 = WebGUI::Asset::Wobject::Survey::Test->new( $session, { assetId => $s->getId } );
WebGUI::Test->addToCleanup(sub {$t1->delete();});
my $spec;