Dont' commit when nothing was changed.
[blog.pm-common-perl-mods.git] / Rose-DB-Object-I18N / t / is-original-translation.t
blob72260abc0bb3df7b1697efaf03ff5340674a010a
1 #! /usr/bin/perl
3 use strict;
4 use warnings;
6 use Test::More 'no_plan';
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 => 'asdf2aa',
20 orig_lang => 'ru',
21 signature => 'hello'
23 $u->save();
25 is( $u->i18n->is_original_translation, 1);
26 is( $u->is_original_translation, 1);
28 $u->delete( cascade => 1 );