diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-06-20 18:45:51 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-06-20 18:45:51 +0000 |
commit | 26e75568cf490a9802825eea2a40fa32f21d4458 (patch) | |
tree | 903c67e8b17f44a330a1f737273679179a3f6713 /test/functional/repositories_controller_test.rb | |
parent | 37cbbcea71eb3350f771a93c8c062af55b859376 (diff) | |
download | redmine-26e75568cf490a9802825eea2a40fa32f21d4458.tar.gz redmine-26e75568cf490a9802825eea2a40fa32f21d4458.zip |
Makes repository url read-only after saving.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9878 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_controller_test.rb')
-rw-r--r-- | test/functional/repositories_controller_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/repositories_controller_test.rb b/test/functional/repositories_controller_test.rb index bb6c19d3d..213a1f81a 100644 --- a/test/functional/repositories_controller_test.rb +++ b/test/functional/repositories_controller_test.rb @@ -40,7 +40,7 @@ class RepositoriesControllerTest < ActionController::TestCase assert_template 'new' assert_kind_of Repository::Subversion, assigns(:repository) assert assigns(:repository).new_record? - assert_tag 'input', :attributes => {:name => 'repository[url]'} + assert_tag 'input', :attributes => {:name => 'repository[url]', :disabled => nil} end def test_new_should_propose_enabled_scm_only @@ -91,7 +91,7 @@ class RepositoriesControllerTest < ActionController::TestCase assert_response :success assert_template 'edit' assert_equal Repository.find(11), assigns(:repository) - assert_tag 'input', :attributes => {:name => 'repository[url]', :value => 'svn://localhost/test'} + assert_tag 'input', :attributes => {:name => 'repository[url]', :value => 'svn://localhost/test', :disabled => 'disabled'} end def test_update |