Skip to content

Commit

Permalink
Remove #find_book from (has_many) AuthorRepository
Browse files Browse the repository at this point in the history
Per hanami#550, #one is not implemented on on HasMany.
  • Loading branch information
landongrindheim committed Oct 2, 2019
1 parent 3ac27f7 commit 952dc59
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions spec/support/fixtures.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 952dc59

Please sign in to comment.