mirror of
https://github.com/redmine/redmine.git
synced 2025-12-24 01:10:38 +01:00
"Create and continue" button for custom fields (#31159).
Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@18054 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -256,6 +256,20 @@ class CustomFieldsControllerTest < Redmine::ControllerTest
|
||||
assert_equal [1, 3], field.projects.map(&:id).sort
|
||||
end
|
||||
|
||||
def test_create_with_continue_params
|
||||
assert_difference 'CustomField.count' do
|
||||
post :create, :params => {
|
||||
:type => 'IssueCustomField',
|
||||
:continue => 'Create and Continue',
|
||||
:custom_field => {
|
||||
:name => 'foo',
|
||||
:field_format => 'string'
|
||||
}
|
||||
}
|
||||
end
|
||||
assert_redirected_to '/custom_fields/new?type=IssueCustomField'
|
||||
end
|
||||
|
||||
def test_create_with_failure
|
||||
assert_no_difference 'CustomField.count' do
|
||||
post :create, :params => {
|
||||
|
||||
Reference in New Issue
Block a user