mirror of
https://github.com/redmine/redmine.git
synced 2026-07-08 09:42:42 +02:00
Refactor: extract method from WikiController#special
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4261 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user