From 9ce00608a423bd625da87ab1b886b904c137c9e0 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 29 Nov 2017 18:04:31 +0000 Subject: [PATCH] Remove the test around missing report_type, since we're not currently requiring that. --- test/controllers/reports_controller_test.rb | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/test/controllers/reports_controller_test.rb b/test/controllers/reports_controller_test.rb index 9c39350f9..d061e284a 100644 --- a/test/controllers/reports_controller_test.rb +++ b/test/controllers/reports_controller_test.rb @@ -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, -- 2.43.2