From e516cceb1baa57f60c71a6f98a1cdb94ca7e69a6 Mon Sep 17 00:00:00 2001 From: Mark Moser Date: Fri, 7 Dec 2018 13:10:49 -0600 Subject: [PATCH] fixing model test --- test/models/blog_test.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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