From ca83436d1b3b6cedd1eca2259f65661e69b01909 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Wed, 13 May 2015 18:28:33 +0800 Subject: Remove `assigns` and `assert_template`. --- railties/test/application/test_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/test/application') diff --git a/railties/test/application/test_test.rb b/railties/test/application/test_test.rb index 61652e5052..bb30940a74 100644 --- a/railties/test/application/test_test.rb +++ b/railties/test/application/test_test.rb @@ -44,7 +44,7 @@ module ApplicationTests def test_index get '/posts' assert_response :success - assert_template "index" + assert_includes @response.body, 'Posts#index' end end RUBY -- cgit v1.2.3