repo.or.cz
/
blog.pm-common-perl-mods.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Rose::DBx::Object::I18N. Rename due to CPAN convention. Documentation. Preparing...
[blog.pm-common-perl-mods.git]
/
Rose-DBx-Object-I18N
/
t
/
update-original.t
blob
3320a49db9a1bd9b8333035548228401b6876593
1
#! /usr/bin/perl
2
3
use
strict
;
4
use
warnings
;
5
6
use
Test
::
More
'tests'
=>
3
;
7
8
use
lib
't/lib'
;
9
10
use
NewDB
;
11
use
User
;
12
use
User
::
Manager
;
13
14
my
$db
=
NewDB
->
new
();
15
16
$db
->
init
();
17
18
my
$u
=
User
->
new
(
19
name
=>
'abcde'
,
20
orig_lang
=>
'ru'
,
21
signature
=>
'hi'
22
);
23
$u
->
save
();
24
25
is
(
$u
->
name
,
'abcde'
);
26
27
is
(
$u
->
orig_lang
,
'ru'
);
28
29
$u
->
name
(
'fred'
);
30
$u
->
save
();
31
32
is
(
$u
->
i18n
->
istran
,
0
);
33
34
$u
->
delete
(
cascade
=>
1
);
35
36
1
;