Dont' commit when nothing was changed.
[blog.pm-common-perl-mods.git] / Rose-DB-Object-I18N / t / update-original.t
blob3320a49db9a1bd9b8333035548228401b6876593
1 #! /usr/bin/perl
3 use strict;
4 use warnings;
6 use Test::More 'tests' => 3;
8 use lib 't/lib';
10 use NewDB;
11 use User;
12 use User::Manager;
14 my $db = NewDB->new();
16 $db->init();
18 my $u = User->new(
19 name => 'abcde',
20 orig_lang => 'ru',
21 signature => 'hi'
23 $u->save();
25 is( $u->name, 'abcde' );
27 is( $u->orig_lang, 'ru' );
29 $u->name( 'fred' );
30 $u->save();
32 is( $u->i18n->istran, 0 );
34 $u->delete( cascade => 1 );