Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix order dependent test

  • Loading branch information...
commit 6f0b1ae04e2d4139563287140a81f553d9f46a7c 1 parent 17e860c
@arunagw arunagw authored
Showing with 10 additions and 2 deletions.
  1. +10 −2 activesupport/test/xml_mini_test.rb
View
12 activesupport/test/xml_mini_test.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.