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' ); |