Fixes for README and tests...

Fix a typo and expand the README a little.  Change a couple of
search() calls to search_rs() in the tests.
This commit is contained in:
barnold 2022-09-28 18:55:32 +01:00
parent 504be2b08f
commit 9e1f9cf899
3 changed files with 5 additions and 4 deletions

5
README
View File

@ -9,9 +9,10 @@ since that was expedient for me. It also assumes the simplest case
where you have a default database that postgres will connect you to if
you don't name one.
The script bin/load-gutenberg.sh loads from the catalog file available
The script bin/load-gutenberg.pl loads from the catalog file available
from gutenberg.org, providing thousands of authors and book titles.
Run it without arguments for help.
Run it from the command line or via 'make -f Makefile.orig' load-gutenberg'.
COPYING

View File

@ -100,7 +100,7 @@ isa_ok(
"Acquired a DBIx::Class::ResultSet for books."
);
# Now we need a second resultset, returned by a search on the first.
my $rset_oliver_twist = $rset_book->search(
my $rset_oliver_twist = $rset_book->search_rs(
{ gutenberg_id => { '<' => 0 }, "me.title" => "Oliver Twist" },
{ prefetch => [ "author" ] },
);

View File

@ -45,7 +45,7 @@ my $rset_tbooks = $rset_book->search_rs({ gutenberg_id => { '<' => 0 } });
$rset_tbooks->delete;
# Delete the test authors.
my $rset_tauthors = $schema->resultset('Author')->search(
my $rset_tauthors = $schema->resultset('Author')->search_rs(
{ name => { 'in' => [ "Charles Dickens", "Jane Austen" ] } },
);
$rset_tauthors->delete;