diff --git a/test/models/blog_test.rb b/test/models/blog_test.rb index 04a7c7b..9e7d88f 100644 --- a/test/models/blog_test.rb +++ b/test/models/blog_test.rb @@ -3,7 +3,9 @@ require 'test_helper' class BlogTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end + test 'has author' do + blog = blogs(:author1) + + assert blog.author.present? + end end