Skip to content

Commit

Permalink
removing author_id
Browse files Browse the repository at this point in the history
changed author_id to author since we haven't introduced the author model at the time we share this solution.
  • Loading branch information
beccaelenzil authored Apr 24, 2020
1 parent db6dd25 commit aee43d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 08-rails/code_samples/update_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

0 comments on commit aee43d1

Please sign in to comment.