lib/temporaries.rb in temporaries-0.0.3 vs lib/temporaries.rb in temporaries-0.1.0

- old
+ new

@@ -7,8 +7,14 @@ if defined?($TEMPORARIES_TEST) # Testing this library. Don't install anything. elsif defined?(RSpec) Temporaries::Adapters::RSpec.install +elsif defined?(MiniTest::Unit::TestCase) + if RUBY_VERSION >= '1.9.3' + Temporaries::Adapters::MiniTest.install + else + Temporaries::Adapters::TestUnit.install(MiniTest::Unit) + end elsif defined?(Test::Unit) - Temporaries::Adapters::TestUnit.install + Temporaries::Adapters::TestUnit.install(Test::Unit) end