lib/ardb/adapter_spy.rb in ardb-0.28.3 vs lib/ardb/adapter_spy.rb in ardb-0.29.0
- old
+ new
@@ -1,12 +1,10 @@
-require 'ardb'
-require 'ardb/adapter/base'
+require "ardb"
+require "ardb/adapter/base"
module Ardb
-
class AdapterSpy < Ardb::Adapter::Base
-
attr_accessor :drop_tables_called_count
attr_accessor :dump_schema_called_count, :load_schema_called_count
attr_accessor :drop_db_called_count, :create_db_called_count
attr_accessor :connect_db_called_count, :migrate_db_called_count
@@ -49,20 +47,10 @@
self.dump_schema_called_count > 0
end
# Overwritten `Adapter::Base` methods
- def foreign_key_add_sql
- "FAKE ADD FOREIGN KEY SQL :from_table :from_column " \
- ":to_table :to_column :name"
- end
-
- def foreign_key_drop_sql
- "FAKE DROP FOREIGN KEY SQL :from_table :from_column " \
- ":to_table :to_column :name"
- end
-
def create_db(*args, &block)
self.create_db_called_count += 1
end
def drop_db(*args, &block)
@@ -86,9 +74,7 @@
end
def dump_schema(*args, &block)
self.dump_schema_called_count += 1
end
-
end
-
end