Create a redaction object before testing the index page lists it.
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 31 May 2017 15:57:30 +0000 (16:57 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 31 May 2017 15:57:30 +0000 (16:57 +0100)
test/controllers/redactions_controller_test.rb

index 5a72830e4805c85ff39f03aefaad4e5be4ce2cfa..750f7c9d143212a993b5ff20ef4c3f8a1edfe8cc 100644 (file)
@@ -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