summaryrefslogtreecommitdiffstats
path: root/test/functional/repositories_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/repositories_controller_test.rb')
-rw-r--r--test/functional/repositories_controller_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/repositories_controller_test.rb b/test/functional/repositories_controller_test.rb
index f55867f5b..ebe6c0da8 100644
--- a/test/functional/repositories_controller_test.rb
+++ b/test/functional/repositories_controller_test.rb
@@ -49,6 +49,16 @@ class RepositoriesControllerTest < Redmine::ControllerTest
assert_select 'option[value=Git]:not([selected])'
end
end
+
+ def test_get_new_with_type
+ @request.session[:user_id] = 1
+ get :new, :project_id => 'subproject1', :repository_scm => 'Git'
+ assert_response :success
+
+ assert_select 'select[name=?]', 'repository_scm' do
+ assert_select 'option[value=?][selected=selected]', 'Git'
+ end
+ end
def test_create
@request.session[:user_id] = 1