1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/soap/marshal/test_marshal.rb
nahi dd23ad7e84 * test/soap/marshal/test_marshal.rb, test/ruby/test_marshal.rb: do $:
trick to share the testcase test/ruby/marshaltestlib.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-17 14:28:34 +00:00

26 lines
413 B
Ruby

require 'test/unit'
require 'soap/marshal'
dir = File.join(File.dirname(File.expand_path(__FILE__)), '../../ruby')
orgpath = $:.dup
begin
$:.push(dir)
require 'marshaltestlib'
ensure
$:.replace(orgpath)
end
module SOAP
module Marshal
class TestMarshal < Test::Unit::TestCase
include MarshalTestLib
def encode(o)
SOAPMarshal.dump(o)
end
def decode(s)
SOAPMarshal.load(s)
end
end
end
end