aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/validations
Commit message (Expand)AuthorAgeFilesLines
* 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
* Failing Tests for Validating String NumbericalityRobert Eshleman2015-12-221-0/+42
* Deprecate passing string to define callback.yui-knk2015-12-161-0/+1
* Really fix test failures caused by #19851Sean Griffin2015-10-201-5/+6
* Fix test failures caused by #19851Sean Griffin2015-10-201-5/+5
* Merge pull request #19851 from repinel/numericality-validation2Sean Griffin2015-10-201-1/+36
|\
| * Conditionally convert the raw_value received by the numeric validator.Roque Pinel2015-07-111-1/+36
* | Validate multiple contexts on `valid?` and `invalid?` at once.Dmitry Polushkin2015-09-071-0/+19
* | Revert "Merge pull request #21069 from dmitry/feature/validate-multiple-conte...Rafael Mendonça França2015-09-071-19/+0
* | Merge pull request #21069 from dmitry/feature/validate-multiple-contexts-at-onceRafael Mendonça França2015-09-071-0/+19
|\ \
| * | Validate multiple contexts on `valid?` and `invalid?` at once.Dmitry Polushkin2015-07-301-0/+19
| |/
* | Add missing test for #17351Aditya Kapoor2015-09-011-0/+14
* | pass the correct argument to mock on a test of `validates_length_of`yuuji.yaginuma2015-07-281-1/+1
|/
* Removes unnecessary comments from i18n validations tests [ci skip]Zamith2015-07-111-61/+2
* Remove the reference to mocha in activemodelZamith2015-07-111-27/+27
* Use private method call assertions in Active Model tests.Kasper Timm Hansen2015-07-102-35/+32