diff --git a/activemodel/test/cases/serializers/xml_serialization_test.rb b/activemodel/test/cases/serializers/xml_serialization_test.rb index 901f42f29b..c4cfb0c255 100644 --- a/activemodel/test/cases/serializers/xml_serialization_test.rb +++ b/activemodel/test/cases/serializers/xml_serialization_test.rb @@ -130,7 +130,7 @@ class XmlSerializationTest < ActiveModel::TestCase end test "should serialize nil" do - assert_match %r{}, @contact.to_xml(methods: :pseudonyms) + assert_match %r{}, @contact.to_xml(methods: :pseudonyms) end test "should serialize integer" do @@ -138,23 +138,23 @@ class XmlSerializationTest < ActiveModel::TestCase end test "should serialize datetime" do - assert_match %r{2006-08-01T00:00:00Z}, @contact.to_xml + assert_match %r{2006-08-01T00:00:00Z}, @contact.to_xml end test "should serialize boolean" do - assert_match %r{false}, @contact.to_xml + assert_match %r{false}, @contact.to_xml end test "should serialize array" do - assert_match %r{\s*twitter\s*github\s*}, @contact.to_xml(methods: :social) + assert_match %r{\s*twitter\s*github\s*}, @contact.to_xml(methods: :social) end test "should serialize hash" do - assert_match %r{\s*github\s*}, @contact.to_xml(methods: :network) + assert_match %r{\s*github\s*}, @contact.to_xml(methods: :network) end test "should serialize yaml" do - assert_match %r{--- !ruby/struct:Customer(\s*)\nname: John\n}, @contact.to_xml + assert_match %r{--- !ruby/struct:Customer(\s*)\nname: John\n}, @contact.to_xml end test "should call proc on object" do