aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/validations
Commit message (Expand)AuthorAgeFilesLines
* 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
* Improve Validation Helpers' documentation comments and testsRadan Skoric2015-06-272-0/+31
* Fix typo in AM I18n validation test name [skip ci]Anton Davydov2015-06-091-1/+1
* Remove use of mocha from Active ModelRoque Pinel2015-05-282-35/+71
* Deprecate the `:tokenizer` option to `validates_length_of`Sean Griffin2015-03-291-4/+16
* Deprecate `ActiveModel::Errors` `add_on_empty` and `add_on_blank` methodsWojciech Wnętrzak2015-02-191-1/+1
* Merge pull request #16381 from kakipo/validate-length-tokenizerRafael Mendonça França2015-02-131-0/+13
|\
| * Allow symbol as values for `tokenize` of `LengthValidator`kakipo2014-08-031-0/+13
* | Removed magic comments # encoding: utf-8 , since its default from ruby 2.0 on...Vipul A M2015-02-0315-16/+0
* | Merge pull request #18439 from mokhan/validates-acceptance-of-arraySean Griffin2015-01-121-0/+6
|\ \
| * | allow '1' or true for acceptance validation.mo khan2015-01-101-0/+6
* | | Add test for AM::Validation::Callbacks with :onclaudiob2015-01-111-0/+26
|/ /
* | Deprecate `false` as the way to halt AM validation callbacksclaudiob2015-01-021-3/+17
* | Add AM test for after_validation returning falseclaudiob2014-12-141-2/+13
* | Pass symbol as an argument instead of a blockErik Michaels-Ober2014-11-291-2/+2
* | Remove redundant require of fileAdam892014-11-011-1/+0
|/
* `only_integer` of `NumericalityValidator` now allows procs and symbolsRobin Mehner2014-06-221-0/+15
* Correct typo, add test for validates_absence_of, correct method namesAkshay Vishnoi2014-06-161-3/+4
* Add singular and plural form for some validation messagesAbd ar-Rahman Hamidi2014-05-021-3/+15
* Completely remove potential global state leaks in ActiveModel tests.Zuhao Wan2014-03-112-9/+11
* Run ActiveModel test suites in random order.Zuhao Wan2014-03-102-6/+10
* use the new clear_validators! api everywhere to reset validators in testsKuldeep Aggarwal2014-01-281-1/+1
* Use the new clear_validators! api to reset validators in testsCarlos Antonio da Silva2014-01-2715-34/+32
* Merge tests about multiple validation contextsCarlos Antonio da Silva2014-01-271-10/+6
* Ability to specify multiple contexts when defining a validation.Vince Puzzella2014-01-271-0/+16
* Let validates_inclusion_of accept Time and DateTime rangesAkira Matsuda2013-10-231-0/+22
* use assert_empty in activemodel conditional validation test casesRajarshi Das2013-09-101-7/+7
* Use Range#cover? for Numeric ranges (tests via endpoints) and use Range#inclu...Charles Bergeron2013-05-271-0/+1
* deprecate Validator#setup (to get rid of a respond_to call). validators do th...Nick Sutterer2013-05-231-23/+1
* Convert ActiveModel to 1.9 hash syntax.Patrick Robertson2013-05-0112-202/+201
* Merge pull request #10286 from neerajdotname/fix-wrong-test-name-and-failure-...Carlos Antonio da Silva2013-04-211-2/+2
|\
| * fix wrong test description and failure messageNeeraj Singh2013-04-211-2/+2
* | Added tests for if condition in Active Model callbacksNeeraj Singh2013-04-211-0/+21
|/
* fix some typos found in activemodelVipul A M2013-03-181-1/+1