Sha256: 5d836e0886f0486903def4fe5a909fd4e4661dd7234aa4fad8d927c50a75a3eb

Contents?: true

Size: 314 Bytes

Versions: 6

Compression:

Stored size: 314 Bytes

Contents

require "cases/helper"

module ActiveRecord
  module Coders
    class JSONTest < ActiveRecord::TestCase
      def test_returns_nil_if_empty_string_given
        assert_nil JSON.load("")
      end

      def test_returns_nil_if_nil_given
        assert_nil JSON.load(nil)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ibm_db-5.2.0-x86-mingw32 test/cases/coders/json_test.rb
ibm_db-5.1.0-x86-mingw32 test/cases/coders/json_test.rb
ibm_db-5.0.5-x86-mingw32 test/cases/coders/json_test.rb
ibm_db-5.0.4-x86-mingw32 test/cases/coders/json_test.rb
ibm_db-5.0.3-x86-mingw32 test/cases/coders/json_test.rb
ibm_db-5.0.2-x86-mingw32 test/cases/coders/json_test.rb