Another big bad commit with additional permission checks and coverage tests
commitb19c3cd4b34c47f910b3de8c062ced0071b0d114
authorNguyễn Thái Ngọc Duy <[email protected]>
Tue, 22 Aug 2006 09:27:34 +0000 (22 16:27 +0700)
committerNguyễn Thái Ngọc Duy <[email protected]>
Tue, 22 Aug 2006 09:27:34 +0000 (22 16:27 +0700)
treed7f1bb9b67f4dfe71870b7d10b54dde9248c2e2b
parent97fb692aef4f6e2bd228d0ee38c9bc4cc507d395
Another big bad commit with additional permission checks and coverage tests

AdminController#update_options was restructured. Added #update_permissions.
Splitted TopicController#view into view and find_topic.
Removed TopicController#post_valid?
Raise exceptions in stead of just set flash[:error] and redirect
Fixed some template errors encountered by tests
Most tests in this commit are coverage tests.
Added assert_form to check form action
Fixed fixtures/settings.yaml (empty maintenance_message)
27 files changed:
app/controllers/admin_controller.rb
app/controllers/application.rb
app/controllers/ban_controller.rb
app/controllers/category_controller.rb
app/controllers/censoring_controller.rb
app/controllers/forum_admin_controller.rb
app/controllers/forum_controller.rb
app/controllers/group_controller.rb
app/controllers/rank_controller.rb
app/controllers/report_controller.rb
app/controllers/topic_controller.rb
app/controllers/user_controller.rb
app/controllers/user_profile_controller.rb
app/views/admin/options.rhtml
app/views/admin/permissions.rhtml
app/views/group/delete.rhtml
test/fixtures/settings.yml
test/functional/admin_controller_test.rb
test/functional/admin_user_profile_controller_test.rb
test/functional/category_controller_test.rb
test/functional/forum_admin_controller_test.rb
test/functional/forum_controller_test.rb
test/functional/group_controller_test.rb
test/functional/topic_controller_test.rb
test/functional/user_controller_test.rb
test/functional/user_profile_controller_test.rb
test/test_helper.rb