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:
parent
504be2b08f
commit
9e1f9cf899
5
README
5
README
|
@ -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
|
||||
|
||||
|
|
|
@ -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" ] },
|
||||
);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue