Create a redaction object before testing the index page lists it.

This commit is contained in:
Andy Allan 2017-05-31 16:57:30 +01:00
parent ae83554929
commit f22098f3b7

View 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