]> git.openstreetmap.org Git - rails.git/blob - test/models/report_test.rb
Merge branch 'master' into moderation
[rails.git] / test / models / report_test.rb
1 require "test_helper"
2
3 class ReportTest < ActiveSupport::TestCase
4   def test_details_required
5     report = create(:report)
6
7     assert report.valid?
8     report.details = ""
9     assert !report.valid?
10   end
11
12   def test_category_required
13     report = create(:report)
14
15     assert report.valid?
16     report.category = ""
17     assert !report.valid?
18   end
19 end