Sha256: 45cbbc636a2718852eab6af4d7d4bf88c8f48e00fbdce06745a84d834ab672fe

Contents?: true

Size: 330 Bytes

Versions: 6

Compression:

Stored size: 330 Bytes

Contents

# frozen_string_literal: true

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 & 2 rubygems

Version Path
ibm_db-5.5.0 test/cases/coders/json_test.rb
ibm_db-5.4.1 test/cases/coders/json_test.rb
ibm_db-5.4.0 test/cases/coders/json_test.rb
ibm_db-5.3.2 test/cases/coders/json_test.rb
ibm_db-5.3.1 test/cases/coders/json_test.rb
ruby-on-quails-0.1.0 activerecord/test/cases/coders/json_test.rb