From f22098f3b76d39e471b72659172f9e374549fa85 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 31 May 2017 16:57:30 +0100 Subject: [PATCH] Create a redaction object before testing the index page lists it. --- test/controllers/redactions_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.43.2