aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/validations_test.rb
Commit message (Expand)AuthorAgeFilesLines
* improve error message when include assertions failMichael Grosser2016-09-161-6/+6
* Add three new rubocop rulesRafael Mendonça França2016-08-161-5/+5
* applies new string literal convention in activemodel/testXavier Noria2016-08-061-21/+21
* Add test case for interpolation with passing of data along with record attrib...Vipul A M2016-04-051-0/+8
* Allow passing record being validated to error message generatorPrathamesh Sonpatki2016-04-051-0/+8
* Move the `validate!` method to `ActiveModel::Validations`.Lucas Mazza2015-02-201-0/+19
* Removed magic comments # encoding: utf-8 , since its default from ruby 2.0 on...Vipul A M2015-02-031-1/+0
* - Fixed unused variableVipul A M2014-12-211-3/+2
* Pass through the `prepend` option to `AS::Callback`Godfrey Chan2014-12-121-1/+37
* Pass symbol as an argument instead of a blockErik Michaels-Ober2014-11-291-1/+1
* Added test for exception message for validate methodPrathamesh Sonpatki2014-09-231-1/+3
* [ci skip] make assert messages consistentankit19102014-08-251-2/+2
* Merge pull request #15959 from aditya-kapoor/remove-unneeded-casesRafael Mendonça França2014-07-291-13/+17
|\
| * remove unneeded test model for ActiveModel test cases.Aditya Kapoor2014-06-281-13/+17
* | Merge pull request #16210 from sonnym/assert_valid_keys_in_validateMatthew Draper2014-07-181-0/+7
|\ \ | |/ |/|
| * check for valid options in validate methodsonnym2014-07-171-0/+6
|/
* remove depricated Validatior#setupKuldeep Aggarwal2014-06-101-21/+0
* ActiveRecord/ActiveModel '#validate' alias for 'valid?'Henrik Nyh2014-03-271-0/+9
* Completely remove potential global state leaks in ActiveModel tests.Zuhao Wan2014-03-111-0/+2
* Fix some validators when used on model instanceEric Hutzelman2014-02-261-1/+2
* Use the new clear_validators! api to reset validators in testsCarlos Antonio da Silva2014-01-271-8/+1
* deprecate Validator#setup (to get rid of a respond_to call). validators do th...Nick Sutterer2013-05-231-0/+21
* callbacks are wrapped with lambdasAaron Patterson2013-05-101-1/+1
* Convert ActiveModel to 1.9 hash syntax.Patrick Robertson2013-05-011-23/+23
* fix some typos found in activemodelVipul A M2013-03-181-2/+2
* Small typos here and there.Vipul A M2013-03-151-2/+2
* Revert "Merge pull request #7826 from sikachu/master-validators-kind"Rafael Mendonça França2012-10-021-8/+0
* Make `.validators_on` accept `:kind` optionPrem Sichanugrist2012-10-021-0/+8
* AM::Validation#validates: ability to pass custom exception to `:strict` optionBogdan Gusiev2012-08-061-0/+9
* Don't enable validations when passing false hash values to ActiveModel.validatesSteve Purcell2012-05-281-0/+5
* Kill whitespaces :scissors:Carlos Antonio da Silva2012-05-151-1/+1
* clean the erros if an object that includes validations errors is duped. Fixes...Angelo Capilleri2012-05-131-0/+15
* replacing ordered hash to ruby hashprasath2012-02-081-1/+1
* Generate strict validation error messages with attribute nameCarlos Antonio da Silva2012-02-011-3/+12
* Removed unwanted intializer and replaced with ruby default collect methodprasath2012-01-271-2/+1
* validates method should not change options argumentdreamfall2012-01-171-0/+6
* Implemented strict validation conceptBogdan Gusiev2011-08-171-0/+33
* :if should not fire on validations when not in context with :onAditya Sanghi2011-04-291-0/+14
* Find all validators for multiple attributesCarl Lerche2011-02-051-0/+18
* Tests and docs which explain the use of validate with a block and without arg...Santiago Pastorino2010-12-191-1/+9
* ActiveModel::Errors.to_hash returns plain OrderedHash and used in to_json ser...Thilo Utke2010-12-011-2/+2
* Remove deprecations in ActiveModel.José Valim2010-08-291-36/+0
* after_validation should be called irrespective of the result of validation.Neeraj Singh2010-08-201-0/+2
* Deletes trailing whitespaces (over text files only find * -type f -exec sed '...Santiago Pastorino2010-08-141-1/+1
* ActiveModel::Errors json serialization to work as Rails 3b4 [#5254 state:reso...Alex Le2010-08-021-3/+5
* Work around the fact the JSON gem was overwriting to_json implementation for ...José Valim2010-06-261-6/+15
* Regression with how base errors messages are added to a model. Works correctl...Josh Kalderimis2010-06-231-3/+18
* Make use of assert_equal to test equallity between object assert expects and ...Santiago Pastorino2010-05-161-1/+1
* validation macros can now be used within an instanceJosh Kalderimis2010-05-131-0/+13
* removed AR from all AMo tests, including any unneeded files (schema, fixtures...Josh Kalderimis2010-05-091-11/+9