Dont' commit when nothing was changed.
[blog.pm-common-perl-mods.git] / Rose-DB-Object-I18N / t / not-translated-i18n.t
blob1b7b6e73ef94bc548041ab9f71c4f5b6d46baba8
1 #! /usr/bin/perl
3 use strict;
4 use warnings;
6 use Test::More 'tests' => 1;
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 => 'asdf2aa1',
20 orig_lang => 'ru',
21 signature => 'hello'
23 $u->save();
25 my @not_translated = $u->not_translated_i18n;
27 is_deeply( [ map { $_->lang } @not_translated ], [ 'en', 'ua' ] );
29 $u->delete( cascade => 1 );