Testes para AttachmentsController

This commit is contained in:
2009-08-06 10:10:37 -03:00
parent 8611d1e9e6
commit f0394466e3
13 changed files with 199 additions and 28 deletions

View File

@@ -251,6 +251,7 @@ class WikiControllerTest < ActionController::TestCase
post :undelete, :course_id => @course.id, :id => @wiki_page.id
end
should_set_the_flash_to(/restored/i)
should_redirect_to('the wiki page') { course_wiki_instance_url(@course, @wiki_page) }
should_create_log_entry {[ WikiRestoreLogEntry, @wiki_page.id, users(:bob).id ]}
@@ -261,7 +262,6 @@ class WikiControllerTest < ActionController::TestCase
end
#def test_should_accept_text_on_show
# get :show, :format => 'txt', :course_id => 1, :id => @wiki_page.id
# assert_formatted_response :text