From: Andy Allan Date: Wed, 31 May 2017 15:57:30 +0000 (+0100) Subject: Create a redaction object before testing the index page lists it. X-Git-Tag: live~3390 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/f22098f3b76d39e471b72659172f9e374549fa85?ds=inline Create a redaction object before testing the index page lists it. --- diff --git a/test/controllers/redactions_controller_test.rb b/test/controllers/redactions_controller_test.rb index 5a72830e4..750f7c9d1 100644 --- a/test/controllers/redactions_controller_test.rb +++ b/test/controllers/redactions_controller_test.rb @@ -2,8 +2,6 @@ require "test_helper" require "redactions_controller" class RedactionsControllerTest < ActionController::TestCase - api_fixtures - ## # test all routes which lead to this controller def test_routes @@ -38,6 +36,8 @@ class RedactionsControllerTest < ActionController::TestCase end def test_index + create(:redaction) + get :index assert_response :success assert_template :index