diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-06-22 00:25:23 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-06-22 08:28:03 -0300 |
commit | 965b779eb2877c47f3bf5fe945c8f24dd576c3cd (patch) | |
tree | 795e98b14ff88d1a3c973050e1a3825886e4c11a /activemodel/test | |
parent | 70d3625760aac9994790bd023f1b5060fe1d06c5 (diff) | |
download | rails-965b779eb2877c47f3bf5fe945c8f24dd576c3cd.tar.gz rails-965b779eb2877c47f3bf5fe945c8f24dd576c3cd.tar.bz2 rails-965b779eb2877c47f3bf5fe945c8f24dd576c3cd.zip |
Add some coverage for AR serialization with serializable_hash
ActiveRecord json/xml serialization should use as base
serializable_hash, provided by ActiveModel. Add some more coverage
around options :only and :except for both json and xml serialization.
Diffstat (limited to 'activemodel/test')
-rw-r--r-- | activemodel/test/cases/serializers/xml_serialization_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/test/cases/serializers/xml_serialization_test.rb b/activemodel/test/cases/serializers/xml_serialization_test.rb index 7eb48abc3c..a93323a3a8 100644 --- a/activemodel/test/cases/serializers/xml_serialization_test.rb +++ b/activemodel/test/cases/serializers/xml_serialization_test.rb @@ -104,7 +104,7 @@ class XmlSerializationTest < ActiveModel::TestCase assert_match %r{<createdAt}, @xml end - test "should use serialiable hash" do + test "should use serializable hash" do @contact = SerializableContact.new @contact.name = 'aaron stack' @contact.age = 25 |