Sha256: 1a0590244b7ed5e65407957359cd2bca6bf3cf6c4482664a2a7a8ad4a8c442a3

Contents?: true

Size: 299 Bytes

Versions: 8

Compression:

Stored size: 299 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

8 entries across 8 versions & 1 rubygems

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