summaryrefslogtreecommitdiffstats
path: root/rubygem-activerecord-xml-serialization.patch
blob: 69a5d8ea7d4e5b0fa87e5353cecd9a2e6d954255 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From fdfabd7e53ccd324453f546bcffc745f208a2336 Mon Sep 17 00:00:00 2001
From: Ken Dreyer <ktdreyer@ktdreyer.com>
Date: Thu, 7 Feb 2013 22:13:30 -0700
Subject: [PATCH] skip xml in serialization_test

With the recent YAML changes, these tests fail when trying calling
from_xml. The simplest fix is to remove from_xml and to_xml from the
test, and only test to_json and from_json.
---
 activerecord/test/cases/serialization_test.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/activerecord/test/cases/serialization_test.rb b/activerecord/test/cases/serialization_test.rb
index 8841694..d2cfb62 100644
--- a/activerecord/test/cases/serialization_test.rb
+++ b/activerecord/test/cases/serialization_test.rb
@@ -2,7 +2,7 @@ require "cases/helper"
 require 'models/contact'
 
 class SerializationTest < ActiveRecord::TestCase
-  FORMATS = [ :xml, :json ]
+  FORMATS = [ :json ]
 
   def setup
     @contact_attributes = {
-- 
1.7.1