summaryrefslogtreecommitdiff
path: root/test/json
diff options
context:
space:
mode:
Diffstat (limited to 'test/json')
-rwxr-xr-xtest/json/test_json_rails.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/json/test_json_rails.rb b/test/json/test_json_rails.rb
index 6fd201bc49..29903642c3 100755
--- a/test/json/test_json_rails.rb
+++ b/test/json/test_json_rails.rb
@@ -13,6 +13,14 @@ require 'date'
class TC_JSONRails < Test::Unit::TestCase
include JSON
+ def setup
+ Symbol.class_eval do
+ def to_json(*a)
+ to_s.to_json(*a)
+ end
+ end
+ end
+
class A
def initialize(a)
@a = a