almost done fixing addRevision tests
This commit is contained in:
parent
6931fd471e
commit
7c14d1e6c4
122 changed files with 389 additions and 1052 deletions
|
|
@ -52,15 +52,13 @@ $mock->fake_module('WebGUI::Asset::DummyComments', '__DUMMY__DUMMY__' => sub {},
|
|||
#----------------------------------------------------------------------------
|
||||
# put your tests here
|
||||
|
||||
my $dummy = WebGUI::Asset->getDefault($session)->addChild({
|
||||
my $dummy = WebGUI::Test->asset->addChild({
|
||||
className => 'WebGUI::Asset::DummyComments',
|
||||
url => '/home/shawshank',
|
||||
title => 'Dummy Title',
|
||||
synopsis => 'Dummy Synopsis',
|
||||
description => 'Dummy Description',
|
||||
});
|
||||
my $tag = WebGUI::VersionTag->getWorking($session);
|
||||
addToCleanup($tag);
|
||||
|
||||
ok $dummy->does('WebGUI::Role::Asset::Comments'), 'dummy object does the right role';
|
||||
$dummy->comments([{ television => 'drop', misdemeanor => 'felony', }]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue