micro-blogger/test/models/blog_test.rb

12 lines
188 B
Ruby
Raw Normal View History

2018-11-11 10:12:43 -06:00
# frozen_string_literal: true
require 'test_helper'
class BlogTest < ActiveSupport::TestCase
2018-12-07 13:10:49 -06:00
test 'has author' do
blog = blogs(:author1)
assert blog.author.present?
end
2018-11-11 10:12:43 -06:00
end