Module: Ardb::AdapterSpy::InstanceMethods
- Defined in:
- lib/ardb/adapter_spy.rb
Instance Attribute Summary collapse
-
#create_db_called_count ⇒ Object
Returns the value of attribute create_db_called_count.
-
#drop_db_called_count ⇒ Object
Returns the value of attribute drop_db_called_count.
-
#drop_tables_called_count ⇒ Object
Returns the value of attribute drop_tables_called_count.
-
#load_schema_called_count ⇒ Object
Returns the value of attribute load_schema_called_count.
Instance Method Summary collapse
- #create_db(*args, &block) ⇒ Object
- #drop_db(*args, &block) ⇒ Object
- #drop_tables(*args, &block) ⇒ Object
- #load_schema(*args, &block) ⇒ Object
Instance Attribute Details
#create_db_called_count ⇒ Object
Returns the value of attribute create_db_called_count.
21 22 23 |
# File 'lib/ardb/adapter_spy.rb', line 21 def create_db_called_count @create_db_called_count end |
#drop_db_called_count ⇒ Object
Returns the value of attribute drop_db_called_count.
21 22 23 |
# File 'lib/ardb/adapter_spy.rb', line 21 def drop_db_called_count @drop_db_called_count end |
#drop_tables_called_count ⇒ Object
Returns the value of attribute drop_tables_called_count.
20 21 22 |
# File 'lib/ardb/adapter_spy.rb', line 20 def drop_tables_called_count @drop_tables_called_count end |
#load_schema_called_count ⇒ Object
Returns the value of attribute load_schema_called_count.
20 21 22 |
# File 'lib/ardb/adapter_spy.rb', line 20 def load_schema_called_count @load_schema_called_count end |
Instance Method Details
#create_db(*args, &block) ⇒ Object
51 52 53 |
# File 'lib/ardb/adapter_spy.rb', line 51 def create_db(*args, &block) self.create_db_called_count += 1 end |
#drop_db(*args, &block) ⇒ Object
43 44 45 |
# File 'lib/ardb/adapter_spy.rb', line 43 def drop_db(*args, &block) self.drop_db_called_count += 1 end |
#drop_tables(*args, &block) ⇒ Object
27 28 29 |
# File 'lib/ardb/adapter_spy.rb', line 27 def drop_tables(*args, &block) self.drop_tables_called_count += 1 end |
#load_schema(*args, &block) ⇒ Object
35 36 37 |
# File 'lib/ardb/adapter_spy.rb', line 35 def load_schema(*args, &block) self.load_schema_called_count += 1 end |