summaryrefslogtreecommitdiffstats
path: root/test/functional/wiki_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/wiki_controller_test.rb')
-rw-r--r--test/functional/wiki_controller_test.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb
index 37d5b8f88..7aea1b4ca 100644
--- a/test/functional/wiki_controller_test.rb
+++ b/test/functional/wiki_controller_test.rb
@@ -284,6 +284,18 @@ class WikiControllerTest < ActionController::TestCase
end
end
end
+
+ context "GET :date_index" do
+ setup do
+ get :date_index, :id => 'ecookbook'
+ end
+
+ should_respond_with :success
+ should_assign_to :pages
+ should_assign_to :pages_by_date
+ should_render_template 'wiki/date_index'
+
+ end
def test_not_found
get :index, :id => 999