aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-06-22 00:25:23 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-06-22 08:28:03 -0300
commit965b779eb2877c47f3bf5fe945c8f24dd576c3cd (patch)
tree795e98b14ff88d1a3c973050e1a3825886e4c11a /activemodel/test
parent70d3625760aac9994790bd023f1b5060fe1d06c5 (diff)
downloadrails-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.rb2
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