removed some debugging comments, removed transaction from Row->get_from_storage,...
[dbsrgits/DBIx-Class.git] / t / 93storage_replication.t
index a2a130d..d03f5c6 100644 (file)
@@ -9,7 +9,7 @@ BEGIN {
     eval "use Moose; use Test::Moose";
     plan $@
         ? ( skip_all => 'needs Moose for testing' )
-        : ( tests => 77 );
+        : ( tests => 80 );
 }
 
 use_ok 'DBIx::Class::Storage::DBI::Replicated::Pool';
@@ -569,6 +569,20 @@ ok $replicated->schema->resultset('Artist')->find(1)
        => 'Got expected single result from transaction';         
 }     
 
+## Private attribute tests
+
+{
+       ok my $artist_rs = $replicated->schema->resultset('Artist')
+        => 'got artist resultset';
+          
+       ## Turn on Reliable Storage
+       ok my $reliable_artist_rs = $artist_rs->search(undef, {execute_reliably=>1})
+        => 'Created a resultset using reliable storage';
+          
+    ok my $artist = $reliable_artist_rs->find(2) 
+        => 'got an artist to test see the attributes';
+}
+
 ## Delete the old database files
 $replicated->cleanup;