summaryrefslogtreecommitdiffstats
path: root/test/unit/custom_field_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merged r23391 from trunk to 5.1-stable (#41961).Go MAEDA2024-12-121-4/+0
| | | | git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@23405 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged r22746 from trunk to 5.1-stable (#40043).Marius Balteanu2024-02-271-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@22755 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/InverseMethods: Use `invalid?` instead of ↵Go MAEDA2023-03-251-2/+2
| | | | | | inverting `valid?` (#37248). git-svn-id: https://svn.redmine.org/redmine/trunk@22153 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use `require_relative` instead of `require File.expand_path(..., __FILE__)` ↵Go MAEDA2023-01-011-1/+1
| | | | | | | | | (#38093). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22016 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year to 2023 (#38141).Go MAEDA2023-01-011-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2022 (#36379).Go MAEDA2022-01-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2021 (#33069).Go MAEDA2021-03-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Create custom field by copy (#34307).Go MAEDA2020-12-261-0/+49
| | | | | | | Patch by Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@20692 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove spaces inside {} of CustomFieldTestToshi MARUYAMA2020-11-141-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20372 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2020 (#33069).Go MAEDA2020-03-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year.Go MAEDA2019-05-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Support frozen_string_literal in test/**/*.rb (#26561).Go MAEDA2019-03-211-1/+1
| | | | | | | Contributed by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17996 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use #b shortcut instead of #force_encoding (#31059).Go MAEDA2019-03-201-1/+1
| | | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17992 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Decode hexadecimal-encoded literals in order to be frozen string literals ↵Go MAEDA2019-03-191-1/+1
| | | | | | | | | friendly (#31004). Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@17991 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "frozen_string_literal: false" for all files (#26561).Go MAEDA2019-03-151-0/+2
| | | | | | | This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Show Edit/Preview tabs for full width layout custom fields with text ↵Go MAEDA2019-02-121-0/+8
| | | | | | | | | formatting enabled (#29712). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17858 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add missing fixtures to several tests (#30276).Go MAEDA2019-01-091-1/+1
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@17780 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Current user should be nil to prevent ActiveJob::DeserializationError errors ↵Go MAEDA2018-12-041-0/+4
| | | | | | in tests. git-svn-id: http://svn.redmine.org/redmine/trunk@17688 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Strip whitespace from integer custom field (#8317).Go MAEDA2018-11-081-0/+2
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17625 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use the id field as project_key in ↵Go MAEDA2018-09-241-0/+16
| | | | | | | | | ProjectCustomField#visibility_by_project_condition by default (#29161). Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@17517 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright.Jean-Philippe Lang2017-06-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code layout cleanup test/unit/custom_field_test.rbToshi MARUYAMA2017-06-191-7/+15
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16678 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use assert_nil instead of assert_equal.Jean-Philippe Lang2016-12-111-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16060 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates copyright for 2016.Jean-Philippe Lang2016-03-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
* CustomField#possible_values may raise undefined method `force_encoding' ↵Jean-Philippe Lang2015-03-141-0/+14
| | | | | | error (#19316). git-svn-id: http://svn.redmine.org/redmine/trunk@14079 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2015-01-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: Redmine::FieldFormat::IntFormat does not accept "real" Integer values ↵Jean-Philippe Lang2015-01-101-0/+2
| | | | | | (#18781). git-svn-id: http://svn.redmine.org/redmine/trunk@13863 e93f8b46-1217-0410-a6f0-8f06a7374b81
* prevent test failures with "trackers is invalid"Toshi MARUYAMA2014-11-081-1/+3
| | | | | | See r13571 comment. git-svn-id: http://svn.redmine.org/redmine/trunk@13572 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't rely on users fixtures.Jean-Philippe Lang2014-10-261-1/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13512 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-4.1 branch (#14534).Jean-Philippe Lang2014-10-221-8/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add missing fixtures to CustomFieldTestToshi MARUYAMA2014-09-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13374 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that non-empty blank strings as custom field values are not properly ↵Jean-Philippe Lang2014-02-281-0/+8
| | | | | | validated (#16169). git-svn-id: http://svn.redmine.org/redmine/trunk@12938 e93f8b46-1217-0410-a6f0-8f06a7374b81
* update copyright year (#15977)Toshi MARUYAMA2014-01-291-1/+1
| | | | | | Contributed by Daniel Felix. git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged custom fields format refactoring.Jean-Philippe Lang2013-12-141-2/+16
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12400 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Accept custom field format added at runtime (#15277).Jean-Philippe Lang2013-11-091-0/+14
| | | | | | Patch by Boris Bera. git-svn-id: http://svn.redmine.org/redmine/trunk@12248 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Role-based issue custom field visibility (#5037).Jean-Philippe Lang2013-07-131-0/+38
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12012 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright for 2013 (#12788).Jean-Philippe Lang2013-01-121-1/+1
| | | | | | Patch by Daniel Felix. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11169 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ability to uncheck "Multiple values" for existing custom fields (#12251).Jean-Philippe Lang2013-01-121-0/+18
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11167 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that validation fails when receiving an email with list custom fields ↵Jean-Philippe Lang2012-12-131-0/+5
| | | | | | (#12400). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10992 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Make sure that custom field format cannot be changed.Jean-Philippe Lang2012-10-131-0/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10624 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed broken test.Jean-Philippe Lang2012-07-241-4/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10075 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ability to group and sort the issue list by user/version custom field (#9419).Jean-Philippe Lang2012-07-241-0/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10073 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-3.2 branch.Jean-Philippe Lang2012-04-251-0/+11
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9528 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Changed assertions to make them work with Rails2/3 ruby1.8/1.9 different ↵Jean-Philippe Lang2012-03-051-2/+2
| | | | | | behaviours. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9108 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Do not validate blank default custom field value.Jean-Philippe Lang2012-01-291-0/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8722 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds support for multiselect custom fields (#1189).Jean-Philippe Lang2012-01-291-0/+22
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8721 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Extracts custom field values validation from CustomValue so that they can be ↵Jean-Philippe Lang2012-01-281-1/+80
| | | | | | validated globally from the customized object (#1189). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8717 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add unit test of CustomField model before_validationToshi MARUYAMA2011-12-111-0/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8190 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Resourcified custom fields.Jean-Philippe Lang2011-12-091-0/+19
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8144 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: test: replace deprecated Errors#on to Errors#[] and join with to_s ↵Toshi MARUYAMA2011-12-091-2/+2
| | | | | | | | | at test/unit/custom_field_test.rb On Rails2, Errors#[] returns single error if one error raises. But, on Rails3, Errors#[] always returns the array. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8139 e93f8b46-1217-0410-a6f0-8f06a7374b81