From aee43d1b3e827fc7672467efa438bdbabe52637c Mon Sep 17 00:00:00 2001 From: Becca Date: Fri, 24 Apr 2020 10:13:53 -0700 Subject: [PATCH] removing author_id changed author_id to author since we haven't introduced the author model at the time we share this solution. --- 08-rails/code_samples/update_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/08-rails/code_samples/update_controller_test.rb b/08-rails/code_samples/update_controller_test.rb index e28ff06f8..3864dc407 100644 --- a/08-rails/code_samples/update_controller_test.rb +++ b/08-rails/code_samples/update_controller_test.rb @@ -21,7 +21,7 @@ book = Book.find_by(id: id) expect(book.title).must_equal book_hash[:book][:title] - expect(book.author_id).must_equal book_hash[:book][:author_id] + expect(book.author).must_equal book_hash[:book][:author] expect(book.description).must_equal book_hash[:book][:description] end @@ -48,7 +48,7 @@ book = Book.find_by(id: id) expect(book.title).must_equal original_book.title - expect(book.author_id).must_equal original_book.author_id + expect(book.author).must_equal original_book.author expect(book.description).must_equal original_book.description end end