9 attr_reader :lasterr, :lasterrstr
12 @responses = Hash.new { |h,k| h[k] = [] }
17 def method_missing(meth, *args)
19 if meth =~ /(.*)=$/ then
20 @responses[$1] << args.first
22 response = @responses[meth].shift
25 @lasterr = response.first
26 @lasterrstr = response.last
35 class MogileFS::Client
39 class TestMogileFS < Test::Unit::TestCase
42 return if self.class == TestMogileFS
43 @root = '/mogilefs/test'
44 @client = @klass.new :hosts => ['kaa:6001'], :domain => 'test',
46 @backend = FakeBackend.new
47 @client.instance_variable_set '@backend', @backend