diff options
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") |