X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/387668a4c6727d8143211a5d828fd5dfacfa25ce..349f5e0655f5026db54e4795e48a688eb2b7a654:/test/models/report_test.rb diff --git a/test/models/report_test.rb b/test/models/report_test.rb index d172ff7db..7b3b973b0 100644 --- a/test/models/report_test.rb +++ b/test/models/report_test.rb @@ -6,7 +6,7 @@ class ReportTest < ActiveSupport::TestCase assert_predicate report, :valid? report.issue = nil - assert_not report.valid? + assert_not_predicate report, :valid? end def test_user_required @@ -14,7 +14,7 @@ class ReportTest < ActiveSupport::TestCase assert_predicate report, :valid? report.user = nil - assert_not report.valid? + assert_not_predicate report, :valid? end def test_details_required @@ -22,7 +22,7 @@ class ReportTest < ActiveSupport::TestCase assert_predicate report, :valid? report.details = "" - assert_not report.valid? + assert_not_predicate report, :valid? end def test_category_required @@ -30,6 +30,11 @@ class ReportTest < ActiveSupport::TestCase assert_predicate report, :valid? report.category = "" - assert_not report.valid? + assert_not_predicate report, :valid? + end + + def test_details + report = create(:report) + assert_instance_of(RichText::Markdown, report.details) end end