rails--rails/activemodel/test/cases
Jakub Suder 2524cf404c fixed some issues with JSON encoding
- as_json in ActiveModel should return a hash
  and handle :only/:except/:methods options
- Array and Hash should call as_json on their elements
- json methods should not modify options argument

[#5374 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-09-07 11:33:10 -07:00
..
mass_assignment_security Avoid interpreted as grouped expression warnings 2010-07-11 02:55:38 -03:00
serializeration fixed some issues with JSON encoding 2010-09-07 11:33:10 -07:00
validations Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00
attribute_methods_test.rb Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00
callbacks_test.rb no callbacks should be created for empty array [#5289 state:resolved] 2010-08-12 13:12:26 -03:00
conversion_test.rb Require persisted? in ActiveModel::Lint and remove new_record? and destroyed? methods. ActionPack does not care if the resource is new or if it was destroyed, it cares only if it's persisted somewhere or not. 2010-02-21 11:12:14 +01:00
dirty_test.rb Remove or fix non-working examples and add a few tests to Dirty [#5185 state:resolved] 2010-08-03 10:47:30 +02:00
errors_test.rb adding test cases for ActiveModel::Errors 2010-08-03 10:46:16 +02:00
helper.rb Add missing ActiveModel::Validations require 2010-08-12 13:11:48 -03:00
lint_test.rb Require persisted? in ActiveModel::Lint and remove new_record? and destroyed? methods. ActionPack does not care if the resource is new or if it was destroyed, it cares only if it's persisted somewhere or not. 2010-02-21 11:12:14 +01:00
mass_assignment_security_test.rb code gardening: we have assert_(nil|blank|present), more concise, with better default failure messages - let's use them 2010-08-17 03:32:11 +02:00
naming_test.rb Prepared ActiveModel::Naming to handle cases for namespaced isolated engines 2010-09-03 22:59:15 +02:00
observing_test.rb Fix Active Model observer tests 2010-04-16 13:14:52 -07:00
serialization_test.rb adding new test for ActiveModel::Serialization 2010-08-31 17:45:03 +02:00
translation_test.rb Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00
validations_test.rb Remove deprecations in ActiveModel. 2010-08-29 20:45:34 -03:00