aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases
Commit message (Collapse)AuthorAgeFilesLines
* Avoid adding component lib/ to load path multiple timesJoshua Peek2009-11-091-1/+3
|
* Move validator, human_name and human_attribute_name to ActiveModel, remove ↵José Valim2009-10-205-6/+64
| | | | | | deprecated error messages and add i18n_scope and lookup_ancestors. Signed-off-by: Carl Lerche <carllerche@mac.com>
* Have all the tests running off a single GemfileYehuda Katz + Carl Lerche2009-10-201-7/+6
|
* Bundle AMoYehuda Katz2009-10-151-2/+7
|
* Rewrite ActiveModel::Lint as a simple TU mixinJoshua Peek2009-10-071-32/+8
|
* Fixed behavior of attribute_methods_generated? [#3220 state:resolved]Sam Pohlenz2009-10-071-0/+26
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Don't share attribute matchers between classes [#3216 state:resolved]Sam Pohlenz2009-10-071-0/+20
| | | | | | | Allows separate models that include ActiveModel::AttributeMethods to use different sets of attribute matchers. Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Use ActiveModel::TestCase base classJeremy Kemper2009-09-243-4/+4
|
* Ensure validation errors to be ordered in declared orderAkira Matsuda2009-09-111-0/+16
| | | | | | [#2301 state:committed milestone:2.3.5] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Changed ActiveRecord to use new callbacks and speed up observers by only ↵José Valim2009-09-083-20/+7
| | | | | | notifying events that are actually being consumed. Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Fix warnings in AMoJoshua Peek2009-09-054-47/+4
|
* Fix failing AMo isolated testsJoshua Peek2009-09-054-0/+7
|
* added proc and symbol support to validates_numericality_of [#3049 ↵Kane2009-08-311-0/+18
| | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Initial AMo Lint implementationYehuda Katz2009-08-291-0/+50
|
* Remove support for SQLite 2.Pratik Naik2009-08-171-9/+4
| | | | If you're still using it, please install the plugin from git://github.com/rails/sqlite2_adapter.git
* Add validates_format_of :without => /regexp/ option [Elliot Winkler, Peer Allan]Elliot Winkler2009-08-101-0/+29
| | | | | | | | | | [#430 state:resolved] Example : validates_format_of :subdomain, :without => /www|admin|mail/ Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Introduce validates_with to encapsulate attribute validations in a class.Jeff Dean2009-08-091-0/+116
| | | | | | [#2630 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix exclusive range patch to use begin/end instead of min/max. [#2981 ↵Adam Keys2009-08-081-0/+14
| | | | | | | status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Simplyfy validates_length_of and remove putsPratik Naik2009-08-081-1/+0
|
* validates_length_of with maximum should allow nil [#2309 status:resolved]jzw2009-08-081-3/+7
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Allow validations to use values from custom readers [#2936 state:resolved]James Hill2009-08-052-0/+28
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Dasherize XML root by default to avoid invalid tags ↵Joshua Peek2009-07-221-0/+11
| | | | "<admin/posts>...</admin/posts>" [#2875 state:resolved]
* Patch to ActiveModel's (and ActiveRecord, by association) XML serialization: ↵John Maxwell2009-07-221-0/+12
| | | | | | If two parameters are present in Procs supplied to to_xml's :procs option, the model being serialized will be passed as the second argument [#2373 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Kill AMo BaseJoshua Peek2009-07-211-2/+5
|
* Kill AMo ivar attributes helperJoshua Peek2009-07-203-30/+8
|
* Initial extraction of AMo xml serializerJoshua Peek2009-07-032-5/+100
|
* Ensure JSON serializer includes model naming Joshua Peek2009-07-031-1/+0
|
* Move mocha down below initial T::U require and bump version to 0.9.7 [#2858 ↵Yehuda Katz + Carl Lerche2009-07-011-2/+0
| | | | state:resolved]
* Add basic JSON serializer to AMoJoshua Peek2009-06-171-0/+64
|
* Add simple attribute implementation backed by ivarsJoshua Peek2009-06-171-0/+30
|
* Simplify AMo validation attribute readerJoshua Peek2009-06-171-9/+9
|
* Move model naming into ActiveModelJoshua Peek2009-06-171-0/+27
|
* Integrate ActiveModel::Observing into ActiveRecordJoshua Peek2009-06-101-12/+20
|
* Merge branch 'master' into active_modelJoshua Peek2009-05-291-20/+8
| | | | | | | | | | | Conflicts: activemodel/lib/active_model/core.rb activemodel/test/cases/state_machine/event_test.rb activemodel/test/cases/state_machine/state_transition_test.rb activerecord/lib/active_record/validations.rb activerecord/test/cases/validations/i18n_validation_test.rb activeresource/lib/active_resource.rb activeresource/test/abstract_unit.rb
* Deprecate Errors#on_base/add_to_base/invalid?/each_fullPratik Naik2009-03-212-9/+21
|
* Add ActiveModel::Validations tests for regular ruby classesPratik Naik2009-03-208-27/+150
|
* Add I18n translations to ActiveModel and move more AR specific parts to ↵Pratik Naik2009-03-203-404/+320
| | | | ActiveRecord::Validations
* Validation tests arent using any fixturesPratik Naik2009-03-201-2/+0
|
* Use mattr_accessor in TestsDatabase instead of setup methodPratik Naik2009-03-201-13/+23
|
* Deprecate Error#on(attribute) in favour of Errors#[attribute]Pratik Naik2009-03-207-66/+90
|
* TestDatabase -> TestsDatabasePratik Naik2009-03-2012-22/+22
|
* Move relevant validation tests from Active Record to Active ModelPratik Naik2009-03-2014-16/+2107
|
* Add test sqlite3 db to .gitignorePratik Naik2009-03-201-4/+1
|
* Make Active Model test suite similar to Active RecordPratik Naik2009-03-207-0/+719