diff options
| author | AppleDash <[email protected]> | 2021-02-24 22:37:13 -0500 |
|---|---|---|
| committer | AppleDash <[email protected]> | 2021-02-24 22:37:13 -0500 |
| commit | 6cc342a85ff7f72fbede201ecd5becf74c98d525 (patch) | |
| tree | bbe2a06fbcee04e4ce376467b2bef72ad9d0357e /test/controllers/reports_controller_test.rb | |
| parent | 334879e24f001539b516438de24a821924f07c8f (diff) | |
Refactor more
Diffstat (limited to 'test/controllers/reports_controller_test.rb')
| -rw-r--r-- | test/controllers/reports_controller_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/controllers/reports_controller_test.rb b/test/controllers/reports_controller_test.rb index 1172bd9..95c0504 100644 --- a/test/controllers/reports_controller_test.rb +++ b/test/controllers/reports_controller_test.rb @@ -16,7 +16,7 @@ class ReportsControllerTest < ActionController::TestCase @image = create(:image) assert_difference('Report.count') do - post :create, params: { reportable_class: 'Image', reportable_id: @image.id, report: { reason: 'OP IS A DUCK' }, category: 'Rule #0' } + post :create, params: { reportable_class: 'Post', reportable_id: @image.id, report: { reason: 'OP IS A DUCK' }, category: 'Rule #0' } assert_response :redirect assert_redirected_to reports_path @@ -28,7 +28,7 @@ class ReportsControllerTest < ActionController::TestCase @image = create(:image) assert_difference('Report.count') do - post :create, params: { reportable_class: 'Image', reportable_id: @image.id, report: { reason: 'OP IS A DUCK' }, category: 'Rule #0' } + post :create, params: { reportable_class: 'Post', reportable_id: @image.id, report: { reason: 'OP IS A DUCK' }, category: 'Rule #0' } assert_response :redirect assert_redirected_to reports_path |
