Try to fix issue where Mechanize mode leaks into spec run

This commit is contained in:
Bryan Helmkamp 2008-12-25 12:03:05 -05:00
parent 056ed85d98
commit 267a66cbc1

View File

@ -1,8 +1,15 @@
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
require "mechanize"
require "webrat/mechanize"
describe Webrat::MechanizeSession do
describe "Webrat::MechanizeSession" do
before :all do
Webrat.cache_config_for_test
require "webrat/mechanize"
end
after :all do
Webrat.reset_for_test
end
before(:each) do
@mech = Webrat::MechanizeSession.new
end