Commit 8458dc23 authored by Eric Davis's avatar Eric Davis

Merged r3903 from trunk.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.0-stable@3953 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 9af4cb5c
......@@ -153,4 +153,27 @@ class AccountControllerTest < ActionController::TestCase
assert_redirected_to ''
assert_nil @request.session[:user_id]
end
context "GET #register" do
context "with self registration on" do
setup do
Setting.self_registration = '3'
get :register
end
should_respond_with :success
should_render_template :register
should_assign_to :user
end
context "with self registration off" do
setup do
Setting.self_registration = '0'
get :register
end
should_redirect_to('/') { home_url }
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment