提交 6f0b1ae0 编写于 作者: A Arun Agrawal

Fix order dependent test

see c48cbb02
上级 17e860c1
......@@ -106,7 +106,11 @@ module LibXML end
module Nokogiri end
setup do
@xml = ActiveSupport::XmlMini
@xml, @default_backend = ActiveSupport::XmlMini, ActiveSupport::XmlMini.backend
end
teardown do
ActiveSupport::XmlMini.backend = @default_backend
end
test "#with_backend should switch backend and then switch back" do
......@@ -135,7 +139,11 @@ module REXML end
module LibXML end
setup do
@xml = ActiveSupport::XmlMini
@xml, @default_backend = ActiveSupport::XmlMini, ActiveSupport::XmlMini.backend
end
teardown do
ActiveSupport::XmlMini.backend = @default_backend
end
test "#with_backend should be thread-safe" do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册