Sha256: e73be81033446b92f0920aff238d16ca8f678cf7702b41f3ce67cf78b970b519
Contents?: true
Size: 536 Bytes
Versions: 6
Compression:
Stored size: 536 Bytes
Contents
require 'rubygems' require 'test/unit' require 'shoulda' require 'mocha' require 'fake_web' $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'term_extraction' class Test::Unit::TestCase def fake_uri(method, uri, fixture) FakeWeb.clean_registry FakeWeb.allow_net_connect = false response = File.open(File.join(File.dirname(__FILE__), 'fixtures', fixture)).read FakeWeb.register_uri(method, uri.to_s, :body => response) end def teardown FakeWeb.allow_net_connect = true FakeWeb.clean_registry end end
Version data entries
6 entries across 6 versions & 2 rubygems