fix code for first test - has title and author, etc. - test code fine. next, add title and author to second test, and add code to set status default to available. next add title and author to initialize third test. add check_out method to switch status to checked out
add if statement in library.rb to check if available. if book available, change to checked_out.
add check_in status that checks for @status == checked_out and changes status to available
assign borrower class attr_reader :name and add @name to borrower initialize
Add attr_accessor :books, :name to library.rb. set books method to return @books. add library name in spec
add book_id = 0 to initializeso every new book in a library has 1 number ID higher than the previous.
change test to accept book objects instead of title/author for register_new_book
add functional check_out_books to library to pass test for check out book by id
add library name and book object to spec. add get_borrower method to library class. add last_borrower to book class. use same block from check_out_book to find book by ID, then borrower by book. refactor later.
add conditional to check_out_book so that 1. the last borrower cannot borrow the book. 2. a checked_out book cannot be borrowered. fix spec to first instantiate a book and then pass that book object to library.
add current_books array to borrower class to track number of books checked out. add contitional in check_out_books method so borrower can't check out more than 2 books. fixed spec to descripe 2 book max instead of 1.
add available books method to select all available books in a new array. changed beginning of this spec session to reflect new initialize requirement for library.
Add empty @borrowed_books array to Library class. when lib.check_out_book, method adds book to borrowed_books array. when lib.check_in_book, deletes book from array.