Skip to content

Commit

Permalink
removed reference to author model
Browse files Browse the repository at this point in the history
At the time we show this solution we do not yet have an author model.
  • Loading branch information
beccaelenzil authored Apr 24, 2020
1 parent 0d773cc commit db6dd25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 08-rails/code_samples/create_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
book_hash = {
book: {
title: 'Practical Object Oriented Programming in Ruby',
author_id: authors(:metz).id,
author: "Sandi Metz",
description: 'Looking into the mysteries of Ruby!'
}
}
Expand All @@ -14,7 +14,7 @@

must_respond_with :redirect
expect(Book.last.title).must_equal book_hash[:book][:title]
expect(Book.last.author_id).must_equal book_hash[:book][:author_id]
expect(Book.last.author).must_equal book_hash[:book][:author]
expect(Book.last.description).must_equal book_hash[:book][:description]
end

Expand Down

0 comments on commit db6dd25

Please sign in to comment.