test/test_scheme.rb in mechanize-0.8.4 vs test/test_scheme.rb in mechanize-0.8.5
- old
+ new
@@ -1,9 +1,13 @@
require File.expand_path(File.join(File.dirname(__FILE__), "helper"))
class SchemeTest < Test::Unit::TestCase
def setup
@agent = WWW::Mechanize.new
+ @agent.log = Class.new(Object) do
+ def method_missing(*args)
+ end
+ end.new
end
def test_file_scheme
f = File.expand_path(__FILE__)
page = @agent.get("file://#{f}")