]> git.openstreetmap.org Git - rails.git/commitdiff
Remove the test around missing report_type, since we're not currently requiring that.
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 29 Nov 2017 18:04:31 +0000 (18:04 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 29 Nov 2017 18:04:31 +0000 (18:04 +0000)
test/controllers/reports_controller_test.rb

index 9c39350f95dfce9b1cf223678dc01b7e91a941a9..d061e284a18db56a3276c6a3ac6cc88a61f19d33 100644 (file)
@@ -62,20 +62,6 @@ class ReportsControllerTest < ActionController::TestCase
     get :new, :params => { :reportable_id => target_user.id, :reportable_type => "User" }
     assert_response :success
 
-    # Report without report_type
-    assert_no_difference "Issue.count" do
-      details = "Details of another report under the same issue"
-      post :create,
-           :params => {
-             :report => {
-               :details => details,
-               :issue => { :reportable_id => target_user.id, :reportable_type => "User" }
-             }
-           }
-    end
-    assert_response :redirect
-    assert_equal 1, Issue.find_by(:reportable_id => target_user.id, :reportable_type => "User").reports.count
-
     # Report without details
     assert_no_difference "Issue.count" do
       post :create,