diff options
author | rick <technoweenie@gmail.com> | 2009-05-17 19:16:11 -0700 |
---|---|---|
committer | rick <technoweenie@gmail.com> | 2009-05-17 19:18:00 -0700 |
commit | e89241c92fbcf68b59d9efb50c21c5040e9f3156 (patch) | |
tree | 163f0fb1b9d048e7610bec789bf08eb0ada40c95 /activesupport/test/json/decoding_test.rb | |
parent | b0de061e7b8d3c291a328f6b0b9bfc5f48b2f907 (diff) | |
download | rails-e89241c92fbcf68b59d9efb50c21c5040e9f3156.tar.gz rails-e89241c92fbcf68b59d9efb50c21c5040e9f3156.tar.bz2 rails-e89241c92fbcf68b59d9efb50c21c5040e9f3156.zip |
load the JSON Backend lazily. If the JSON gem is already loaded, use the JSONGem backend by default.
Diffstat (limited to 'activesupport/test/json/decoding_test.rb')
-rw-r--r-- | activesupport/test/json/decoding_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activesupport/test/json/decoding_test.rb b/activesupport/test/json/decoding_test.rb index 7e1bfcca84..09fd0d09ba 100644 --- a/activesupport/test/json/decoding_test.rb +++ b/activesupport/test/json/decoding_test.rb @@ -36,6 +36,9 @@ class TestJSONDecoding < ActiveSupport::TestCase %q({"b":["\u003ci\u003e","\u003cb\u003e","\u003cu\u003e"]}) => {'b' => ["<i>","<b>","<u>"]} } + # load the default JSON backend + ActiveSupport::JSON.backend + backends = %w(Yaml) begin gem 'json', '>= 1.1' |