3 class ReportTest < ActiveSupport::TestCase
4 def test_issue_required
5 report = create(:report)
7 assert_predicate report, :valid?
9 assert_not_predicate report, :valid?
12 def test_user_required
13 report = create(:report)
15 assert_predicate report, :valid?
17 assert_not_predicate report, :valid?
20 def test_details_required
21 report = create(:report)
23 assert_predicate report, :valid?
25 assert_not_predicate report, :valid?
28 def test_category_required
29 report = create(:report)
31 assert_predicate report, :valid?
33 assert_not_predicate report, :valid?
37 report = create(:report)
38 assert_instance_of(RichText::Markdown, report.details)