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
1 changed files with 10 additions and 3 deletions

View File

@ -1,8 +1,15 @@
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') 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 before(:each) do
@mech = Webrat::MechanizeSession.new @mech = Webrat::MechanizeSession.new
end end