subtest 'get() tests' => sub {
- plan tests => 18;
+ plan tests => 21;
$schema->storage->txn_begin;
->json_is( [ "application/json",
"application/marcxml+xml",
"application/marc-in-json",
- "application/marc" ] );
+ "application/marc",
+ "text/plain" ] );
$t->get_ok( "//$userid:$password@/api/v1/biblios/" . $biblio->biblionumber
=> { Accept => 'application/json' } )
=> { Accept => 'application/marc' } )
->status_is(200);
+ $t->get_ok( "//$userid:$password@/api/v1/biblios/" . $biblio->biblionumber
+ => { Accept => 'text/plain' } )
+ ->status_is(200)
+ ->content_is($biblio->metadata->record->as_formatted);
+
$biblio->delete;
$t->get_ok( "//$userid:$password@/api/v1/biblios/" . $biblio->biblionumber
=> { Accept => 'application/marc' } )