From 94fa985550cd6922a56898a3097b61b4fefd512b Mon Sep 17 00:00:00 2001 From: zorun Date: Fri, 6 Dec 2013 02:46:15 +0100 Subject: [PATCH] Add a test for issue #772 --- test/test_app.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/test_app.rb b/test/test_app.rb index e7056bfd..2e2de80c 100644 --- a/test/test_app.rb +++ b/test/test_app.rb @@ -523,6 +523,18 @@ context "Frontend" do assert_match /スイカ/, last_response.body end + test "add noindex tags to history pages" do + get "A" + + assert last_response.ok? + assert_no_match /meta name="robots" content="noindex, nofollow"/, last_response.body + + get "A/fc66539528eb96f21b2bbdbf557788fe8a1196ac" + + assert last_response.ok? + assert_match /meta name="robots" content="noindex, nofollow"/, last_response.body + end + def app Precious::App end