Fix BuildEnvironment marshalling test

This commit is contained in:
Jack Nagel 2014-07-07 17:47:58 -05:00
parent 0f54f7f072
commit 48c14ee736

View File

@ -29,9 +29,8 @@ class BuildEnvironmentTests < Homebrew::TestCase
def test_marshal
@env << :userpaths
@env << Proc.new { 1 }
dump = Marshal.dump(@env)
assert_predicate Marshal.load(dump), :userpaths?
@env.proc = Proc.new {}
assert_predicate Marshal.load(Marshal.dump(@env)), :userpaths?
end
def test_env_block