test/unit/test_helpers_tests.rb in ardb-0.27.3 vs test/unit/test_helpers_tests.rb in ardb-0.28.0
- old
+ new
@@ -16,15 +16,11 @@
end
class UsageTests < UnitTests
setup do
- @adapter_spy_class = Ardb::AdapterSpy.new
- @orig_ardb_adapter = Ardb.adapter
- Ardb::Adapter.current = @adapter_spy = @adapter_spy_class.new
- end
- teardown do
- Ardb::Adapter.current = @orig_ardb_adapter
+ @adapter_spy = Ardb::AdapterSpy.new
+ Assert.stub(Ardb, :adapter){ @adapter_spy }
end
end
class DropTablesTests < UsageTests