X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/fa77b55bd5efdb38ddfaad0911d871df5a226dd6..75a4d406b9e8471c0fe0ebf2a47d47f0ae36289a:/test/models/report_test.rb?ds=sidebyside diff --git a/test/models/report_test.rb b/test/models/report_test.rb index 64ccf501d..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,7 +30,7 @@ class ReportTest < ActiveSupport::TestCase assert_predicate report, :valid? report.category = "" - assert_not report.valid? + assert_not_predicate report, :valid? end def test_details