/[cwmp]/google/t/05-store.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /google/t/05-store.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 84 by dpavlin, Fri Jun 22 14:59:40 2007 UTC revision 85 by dpavlin, Fri Jun 22 18:36:09 2007 UTC
# Line 30  cmp_ok( $store->path, 'eq', $path, 'path Line 30  cmp_ok( $store->path, 'eq', $path, 'path
30    
31  ok( $store->update_state( 42, { foo => 'bar' } ), 'update_state new' );  ok( $store->update_state( 42, { foo => 'bar' } ), 'update_state new' );
32    
33  ok( my $state = $store->db->get('42'), 'db->get' );  ok( my $state = $store->state('42'), 'db->get' );
34    
35  is_deeply( $state, { foo => 'bar' }, 'state' );  is_deeply( $state, { foo => 'bar' }, 'state' );
36    
37  ok( $store->update_state( 42, { baz => 12345 } ), 'update_state existing' );  ok( $store->update_state( 42, { baz => 12345 } ), 'update_state existing' );
38    
39  is_deeply( $state, { foo => 'bar', baz => 12345 }, 'new state' );  is_deeply( $store->state(42), { foo => 'bar', baz => 12345 }, 'store->state' );

Legend:
Removed from v.84  
changed lines
  Added in v.85

  ViewVC Help
Powered by ViewVC 1.1.26