diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-08-31 17:26:37 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-08-31 17:26:37 +0000 |
commit | 26f0e0dfb1e5da83a14b2165fd2bae1bd2933313 (patch) | |
tree | 2f20585f4139a957f614f26faadf43e1a08f4290 /test | |
parent | 49d057a7e3eca6f8281e669882f62dee91ec3097 (diff) | |
download | redmine-26f0e0dfb1e5da83a14b2165fd2bae1bd2933313.tar.gz redmine-26f0e0dfb1e5da83a14b2165fd2bae1bd2933313.zip |
Don't show "status" field when creating a new version (#23377).
git-svn-id: http://svn.redmine.org/redmine/trunk@15784 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/versions_controller_test.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/functional/versions_controller_test.rb b/test/functional/versions_controller_test.rb index 48cf6e641..d794cf3e4 100644 --- a/test/functional/versions_controller_test.rb +++ b/test/functional/versions_controller_test.rb @@ -128,6 +128,7 @@ class VersionsControllerTest < Redmine::ControllerTest get :new, :params => {:project_id => '1'} assert_response :success assert_select 'input[name=?]', 'version[name]' + assert_select 'select[name=?]', 'version[status]', false end def test_new_from_issue_form @@ -175,7 +176,12 @@ class VersionsControllerTest < Redmine::ControllerTest @request.session[:user_id] = 2 get :edit, :params => {:id => 2} assert_response :success - assert_select 'input[name=?][value=?]', 'version[name]', Version.find(2).name + version = Version.find(2) + + assert_select 'select[name=?]', 'version[status]' do + assert_select 'option[value=?][selected="selected"]', version.status + end + assert_select 'input[name=?][value=?]', 'version[name]', version.name end def test_close_completed @@ -190,7 +196,7 @@ class VersionsControllerTest < Redmine::ControllerTest def test_post_update @request.session[:user_id] = 2 put :update, :params => { - :id => 2, + :id => 2, :version => { :name => 'New version name', :effective_date => Date.today.strftime("%Y-%m-%d") |