Create a redaction object before testing the index page lists it.
This commit is contained in:
parent
ae83554929
commit
f22098f3b7
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,6 @@ require "test_helper"
|
||||||
require "redactions_controller"
|
require "redactions_controller"
|
||||||
|
|
||||||
class RedactionsControllerTest < ActionController::TestCase
|
class RedactionsControllerTest < ActionController::TestCase
|
||||||
api_fixtures
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# test all routes which lead to this controller
|
# test all routes which lead to this controller
|
||||||
def test_routes
|
def test_routes
|
||||||
|
@ -38,6 +36,8 @@ class RedactionsControllerTest < ActionController::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_index
|
def test_index
|
||||||
|
create(:redaction)
|
||||||
|
|
||||||
get :index
|
get :index
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert_template :index
|
assert_template :index
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue