aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/validations/conditional_validation_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use the new clear_validators! api to reset validators in testsCarlos Antonio da Silva2014-01-271-1/+1
|
* use assert_empty in activemodel conditional validation test casesRajarshi Das2013-09-101-7/+7
|
* Convert ActiveModel to 1.9 hash syntax.Patrick Robertson2013-05-011-17/+17
| | | | | I also attempted to fix other styleguide violations such as { a: :b } over {a: :b} and foo(b: 'bar') over foo( b: 'bar' ).
* Follow code conventions on some testsSebastian Martinez2011-05-101-12/+12
|
* removed AR from all AMo tests, including any unneeded files (schema, ↵Josh Kalderimis2010-05-091-2/+0
| | | | fixtures and test helper)
* removed use of AR in AMo tests and removed testing of scopes (:on) in ↵Josh Kalderimis2010-05-081-21/+21
| | | | individual validation tests and moved them to their own test file
* Favor %{} in all code instead of (deprecated) {{}} as interpolation syntax ↵Lawrence Pit2010-05-031-12/+12
| | | | | | for I18n Signed-off-by: José Valim <jose.valim@gmail.com>
* No need to use ValidationsRepairHelper hack on ActiveModel anymore, ↵José Valim2009-12-231-2/+3
| | | | Model.reset_callbacks(:validate) is enough. However, tests in ActiveRecord are still coupled, so moved ValidationsRepairHelper back there.
* Deprecate Errors#on_base/add_to_base/invalid?/each_fullPratik Naik2009-03-211-3/+3
|
* TestDatabase -> TestsDatabasePratik Naik2009-03-201-2/+2
|
* Move relevant validation tests from Active Record to Active ModelPratik Naik2009-03-201-0/+140