From 952dc59d5fc9d826684408ebc722fd08844eb54c Mon Sep 17 00:00:00 2001 From: Landon Grindheim Date: Wed, 2 Oct 2019 16:18:32 -0400 Subject: [PATCH] Remove #find_book from (has_many) AuthorRepository Per #550, #one is not implemented on on HasMany. --- spec/support/fixtures.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/spec/support/fixtures.rb b/spec/support/fixtures.rb index 1b75c949..6f1bfb7a 100644 --- a/spec/support/fixtures.rb +++ b/spec/support/fixtures.rb @@ -254,10 +254,6 @@ def on_sales_books_count(author) assoc(:books, author).where(on_sale: true).count end - def find_book(author, id) - book_for(author, id).one - end - def book_exists?(author, id) book_for(author, id).exists? end