summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-04-09 14:53:55 +0000
committerGo MAEDA <maeda@farend.jp>2019-04-09 14:53:55 +0000
commit7cf16d4abd3efde6444366d2ae9cebdb21c13713 (patch)
tree85b13f9afdca8243e2d6f8dfde622c6f8d0a775f /test
parentd953242e521592b84d4d2fe4378ceb127ec4eda3 (diff)
downloadredmine-7cf16d4abd3efde6444366d2ae9cebdb21c13713.tar.gz
redmine-7cf16d4abd3efde6444366d2ae9cebdb21c13713.zip
"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
Diffstat (limited to 'test')
-rw-r--r--test/functional/custom_fields_controller_test.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/custom_fields_controller_test.rb b/test/functional/custom_fields_controller_test.rb
index c243902e5..e9c5bdf0b 100644
--- a/test/functional/custom_fields_controller_test.rb
+++ b/test/functional/custom_fields_controller_test.rb
@@ -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 => {