4 use Test::More qw(no_plan);
13 my $schema = Cafe->connect( 'dbi:Pg:dbname=cafe', 'postgres', '' );
14 $schema->storage->ensure_connected;
15 $schema->storage->_use_insert_returning(0);
17 $schema->source('Sumatra'),
18 'DBIx::Class::ResultSource::View',
22 my ( $drink, $drink1 );
25 $drink = $schema->resultset('Sumatra')
26 ->create( { sweetness => 4, aroma => 'earthy', flavor => 'great' } );
28 "I can call a create on a view sumatra";
31 $drink1 = $schema->resultset('Coffee')->create( { flavor => 'aaight', } );
33 "I can do it for the other view, too";