~ubuntu-branches/ubuntu/trusty/libjifty-dbi-perl/trusty

« back to all changes in this revision

Viewing changes to t/metadata.t

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Yu
  • Date: 2011-03-01 20:29:12 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20110301202912-pvf5r3de3vqp40w0
Tags: 0.67-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        my $rec = TestApp::User->new( handle => $handle );
34
34
        isa_ok($rec, 'Jifty::DBI::Record');
35
35
 
36
 
        my $col = $rec->column('name');
37
 
        is($col->label, 'Name');
38
 
 
39
 
        is($col->attributes->{arbitary_data}, 'fooo');
40
 
 
41
 
        is_deeply($col->serialize_metadata, { type => 'varchar', label => 'Name', sort_order => 0, writable => 1, name => 'name', readable => 1 });
 
36
        my $col = $rec->column('name');
 
37
        is($col->label, 'Name');
 
38
 
 
39
        is($col->attributes->{arbitary_data}, 'fooo');
 
40
 
 
41
        is_deeply($col->serialize_metadata, { type => 'varchar', label => 'Name', sort_order => 0, writable => 1, name => 'name', readable => 1 });
42
42
 
43
43
        cleanup_schema( 'TestApp', $handle );
44
44
        disconnect_handle( $handle );