Fix a broken test
This commit is contained in:
parent
601331b508
commit
b75aa4b8d6
2 changed files with 4 additions and 1 deletions
|
@ -140,6 +140,7 @@ class AdminControllerTest < ActionController::TestCase
|
|||
assert @web.allow_uploads?
|
||||
assert_equal 300, @web.max_upload_size
|
||||
assert File.directory? Rails.root.join("webs", "renamed_wiki1", "files")
|
||||
assert !File.exist?(Rails.root.join("webs", "renamed_wiki1", "wiki1"))
|
||||
assert !File.exist?(Rails.root.join("webs", "wiki1"))
|
||||
end
|
||||
|
||||
|
@ -157,6 +158,7 @@ class AdminControllerTest < ActionController::TestCase
|
|||
assert_response :success
|
||||
assert @response.has_template_object?('error')
|
||||
assert File.directory? Rails.root.join("webs", "wiki1", "files")
|
||||
assert !File.exist?(Rails.root.join("webs", "renamed_wiki1", "wiki1"))
|
||||
assert !File.exist?(Rails.root.join("webs", "renamed_wiki1"))
|
||||
end
|
||||
|
||||
|
@ -179,6 +181,7 @@ class AdminControllerTest < ActionController::TestCase
|
|||
assert !@web.count_pages?
|
||||
assert !@web.allow_uploads?
|
||||
assert File.directory? Rails.root.join("webs", "renamed_wiki1", "files")
|
||||
assert !File.exist?(Rails.root.join("webs", "renamed_wiki1", "wiki1"))
|
||||
assert !File.exist?(Rails.root.join("webs", "wiki1"))
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue