diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-10-04 16:40:24 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-10-04 16:40:24 +0000 |
commit | 46044b48a3d7f27a2ca27fadc5e1b067f5d53d96 (patch) | |
tree | 37e253c10d15e051a5c58525d534fa234f508f34 /test/functional/repositories_controller_test.rb | |
parent | 0f2026821ccbf09b6df07e5f0da349537e3d6d62 (diff) | |
download | redmine-46044b48a3d7f27a2ca27fadc5e1b067f5d53d96.tar.gz redmine-46044b48a3d7f27a2ca27fadc5e1b067f5d53d96.zip |
Adds accessors for report_last_commit.
git-svn-id: http://svn.redmine.org/redmine/trunk@15885 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_controller_test.rb')
-rw-r--r-- | test/functional/repositories_controller_test.rb | 10 |
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 |