diff --git a/spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb b/spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
+++ b/spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
@@ -16,4 +16,10 @@ describe "OracleEnhancedAdapter emulate OracleAdapter" do
     ActiveRecord::Base.connection.is_a?(ActiveRecord::ConnectionAdapters::OracleAdapter).should be_true
   end
 
+  after(:all) do
+    if defined?(ActiveRecord::ConnectionAdapters::OracleAdapter)
+      ActiveRecord::ConnectionAdapters.send(:remove_const, :OracleAdapter)
+    end    
+  end
+
 end
remove OracleAdapter constant after emulate OracleAdapter test