require 'test/unit' unless defined? $ZENTEST and $ZENTEST $TESTING = true require 'rubyforge' require 'tmpdir' class RubyForge attr_writer :client alias :old_save_autoconfig :save_autoconfig def save_autoconfig # raise "not during test" end end class RubyForge::FakeClient def form; end def save_cookie_store(*args) end def post_content(*args) FakeRubyForge::HTML end def get_content(*args) URI::HTTP.data.join("\n") end end class FakeRubyForge < RubyForge HTML = "blah blah