Sha256: 91d75339fce815b5ba05a9d91637798c306179bffd3f3c4b473aa4bb8227fb4a
Contents?: true
Size: 513 Bytes
Versions: 54
Compression:
Stored size: 513 Bytes
Contents
require File.expand_path('../abstract_unit', __FILE__) class TestDumpable < ActiveSupport::TestCase fixtures :articles, :readings, :users def test_marshal_with_simple_preload articles = Article.preload(:readings).where(id: 1).to_a assert_equal(Marshal.load(Marshal.dump(articles)), articles) end def test_marshal_with_comples_preload articles = Article.preload({ readings: :user }).where(id: 1).to_a assert_equal(Marshal.load(Marshal.dump(articles)), articles) end end
Version data entries
54 entries across 54 versions & 1 rubygems