aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/validations
Commit message (Expand)AuthorAgeFilesLines
* Rename `i18n_full_message` config option to `i18n_customize_full_message`Prathamesh Sonpatki2019-03-291-13/+13
* activemodel typo fix.alkesh262019-02-251-3/+3
* activemodel typo fixes.alkesh262019-01-311-1/+1
* Fix NumericalityValidator on object responding to `to_f`:Edouard CHIN2019-01-221-0/+13
* Enable `Style/RedundantBegin` cop to avoid newly adding redundant begin blockRyuta Kamizono2018-12-211-18/+16
* Module#{define_method,alias_method,undef_method,remove_method} become public ...Ryuta Kamizono2018-12-212-6/+6
* Fix numericality equality validation on floatsGannon McGibbon2018-12-121-0/+7
* Merge pull request #33615 from Larochelle/i18n_full_message_with_nested_attri...Rafael França2018-09-071-1/+58
|\
| * Call human_attribute_name with a string instead of a symboleMartin Larochelle2018-08-161-1/+1
| * `ActiveModel.full_message` interaction with `index_errors`Martin Larochelle2018-08-141-0/+57
* | Fix numericality validator to still use value before type cast except Active ...Ryuta Kamizono2018-08-241-0/+10
|/
* Merge pull request #32956 from Shopify/i18n_activemodel_errors_full_messageRafael França2018-06-111-0/+59
|\
| * Add global config for config.active_model.i18n_full_messageMartin Larochelle2018-06-051-0/+23
| * Allow to override the full_message error formatMartin Larochelle2018-05-221-0/+36
* | Fix `CustomCops/AssertNot` to allow it to have failure messageRyuta Kamizono2018-05-131-1/+1
|/
* Use assert_empty and assert_not_emptyDaniel Colson2018-01-252-9/+9
* Use assert_predicate and assert_not_predicateDaniel Colson2018-01-2512-274/+274
* Change test case name to FormatValidationTestPatrik Bóna2018-01-141-1/+1
* Fix validation callbacks on multiple contextYoshiyuki Hirano2017-12-201-0/+43
* Suppress `warning: BigDecimal.new is deprecated` in Active ModelYasuo Honda2017-12-141-14/+14
* Merge pull request #31061 from bogdanvlviv/test-if-unless-options-for-validat...Rafael França2017-11-063-6/+57
|\
| * Add cases to test combining validation conditionsbogdanvlviv2017-11-063-6/+57
* | Execute `ConfirmationValidator` validation when `_confirmation`'s value is `f...bogdanvlviv2017-11-051-0/+13
|/
* Allow passing a Proc or Symbol as an argument to length validator valuesMatt Rohrer2017-10-261-0/+31
* Remove deprecated `:if` and `:unless` string filter for callbacksRafael Mendonça França2017-10-232-104/+2
* Use frozen string literal in activemodel/Kir Shatrov2017-07-1616-0/+32
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-0216-16/+0
* Enforce frozen string in RubocopKir Shatrov2017-07-0116-0/+16
* Replace \Z to \zRyuta Kamizono2017-04-241-3/+3
* Avoid converting integer as a string into floatnamusyaka2017-02-181-0/+9
* Remove deprecated behavior that halts callbacks when the return is falseRafael Mendonça França2017-02-071-8/+6
* Deprecate passing string to `:if` and `:unless` conditional options on `set_c...Ryuta Kamizono2017-02-042-10/+30
* Do not rely on Ruby implementation in AM testKir Shatrov2016-11-191-3/+3
* Add more rubocop rules about whitespacesRafael Mendonça França2016-10-297-21/+21
* Removed deprecated :tokenizer in the length validatorRafael Mendonça França2016-10-101-36/+0
* improve error message when include assertions failMichael Grosser2016-09-162-11/+11
* Fix broken comments indentation caused by rubocop auto-correct [ci skip]Ryuta Kamizono2016-09-141-1/+1
* Add test for allow_blank in numericality validationNicolai Reuschling2016-08-281-0/+7
* Add three new rubocop rulesRafael Mendonça França2016-08-167-16/+16
* Fix broken alignments caused by auto-correct commit 411ccbdRyuta Kamizono2016-08-101-1/+2
* code gardening: removes redundant selfsXavier Noria2016-08-081-16/+16
* Add `Style/EmptyLines` in `.rubocop.yml` and remove extra empty linesRyuta Kamizono2016-08-072-2/+0
* applies remaining conventions across the projectXavier Noria2016-08-0611-12/+0
* normalizes indentation and whitespace across the projectXavier Noria2016-08-061-17/+17
* remove redundant curlies from hash argumentsXavier Noria2016-08-061-4/+2
* modernizes hash syntax in activemodelXavier Noria2016-08-061-1/+1
* applies new string literal convention in activemodel/testXavier Noria2016-08-0616-215/+215
* Support for unified Integer class in Ruby 2.4+Jeremy Daer2016-05-181-1/+1
* Add edge cases to Time/Date/DateTime inclusion validation testsojab2016-03-241-3/+17
* remove args from assert_nothing_raised in testsTara Scherner de la Fuente2016-02-222-4/+4