Module: Ardb::AdapterSpy::InstanceMethods
- Defined in:
- lib/ardb/adapter_spy.rb
Instance Attribute Summary collapse
-
#connect_db_called_count ⇒ Object
Returns the value of attribute connect_db_called_count.
-
#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.
-
#dump_schema_called_count ⇒ Object
Returns the value of attribute dump_schema_called_count.
-
#load_schema_called_count ⇒ Object
Returns the value of attribute load_schema_called_count.
-
#migrate_db_called_count ⇒ Object
Returns the value of attribute migrate_db_called_count.
Instance Method Summary collapse
- #connect_db(*args, &block) ⇒ Object
- #connect_db_called? ⇒ Boolean
- #create_db(*args, &block) ⇒ Object
- #create_db_called? ⇒ Boolean
- #drop_db(*args, &block) ⇒ Object
- #drop_db_called? ⇒ Boolean
- #drop_tables(*args, &block) ⇒ Object
- #drop_tables_called? ⇒ Boolean
- #dump_schema(*args, &block) ⇒ Object
- #dump_schema_called? ⇒ Boolean
- #load_schema(*args, &block) ⇒ Object
- #load_schema_called? ⇒ Boolean
- #migrate_db(*args, &block) ⇒ Object
- #migrate_db_called? ⇒ Boolean
Instance Attribute Details
#connect_db_called_count ⇒ Object
Returns the value of attribute connect_db_called_count.
24 25 26 |
# File 'lib/ardb/adapter_spy.rb', line 24 def connect_db_called_count @connect_db_called_count end |
#create_db_called_count ⇒ Object
Returns the value of attribute create_db_called_count.
23 24 25 |
# File 'lib/ardb/adapter_spy.rb', line 23 def create_db_called_count @create_db_called_count end |
#drop_db_called_count ⇒ Object
Returns the value of attribute drop_db_called_count.
23 24 25 |
# File 'lib/ardb/adapter_spy.rb', line 23 def drop_db_called_count @drop_db_called_count end |
#drop_tables_called_count ⇒ Object
Returns the value of attribute drop_tables_called_count.
21 22 23 |
# File 'lib/ardb/adapter_spy.rb', line 21 def drop_tables_called_count @drop_tables_called_count end |
#dump_schema_called_count ⇒ Object
Returns the value of attribute dump_schema_called_count.
22 23 24 |
# File 'lib/ardb/adapter_spy.rb', line 22 def dump_schema_called_count @dump_schema_called_count end |
#load_schema_called_count ⇒ Object
Returns the value of attribute load_schema_called_count.
22 23 24 |
# File 'lib/ardb/adapter_spy.rb', line 22 def load_schema_called_count @load_schema_called_count end |
#migrate_db_called_count ⇒ Object
Returns the value of attribute migrate_db_called_count.
24 25 26 |
# File 'lib/ardb/adapter_spy.rb', line 24 def migrate_db_called_count @migrate_db_called_count end |
Instance Method Details
#connect_db(*args, &block) ⇒ Object
94 95 96 |
# File 'lib/ardb/adapter_spy.rb', line 94 def connect_db(*args, &block) self.connect_db_called_count += 1 end |
#connect_db_called? ⇒ Boolean
90 91 92 |
# File 'lib/ardb/adapter_spy.rb', line 90 def connect_db_called? self.connect_db_called_count > 0 end |
#create_db(*args, &block) ⇒ Object
82 83 84 |
# File 'lib/ardb/adapter_spy.rb', line 82 def create_db(*args, &block) self.create_db_called_count += 1 end |
#create_db_called? ⇒ Boolean
78 79 80 |
# File 'lib/ardb/adapter_spy.rb', line 78 def create_db_called? self.create_db_called_count > 0 end |
#drop_db(*args, &block) ⇒ Object
70 71 72 |
# File 'lib/ardb/adapter_spy.rb', line 70 def drop_db(*args, &block) self.drop_db_called_count += 1 end |
#drop_db_called? ⇒ Boolean
66 67 68 |
# File 'lib/ardb/adapter_spy.rb', line 66 def drop_db_called? self.drop_db_called_count > 0 end |
#drop_tables(*args, &block) ⇒ Object
34 35 36 |
# File 'lib/ardb/adapter_spy.rb', line 34 def drop_tables(*args, &block) self.drop_tables_called_count += 1 end |
#drop_tables_called? ⇒ Boolean
30 31 32 |
# File 'lib/ardb/adapter_spy.rb', line 30 def drop_tables_called? self.drop_tables_called_count > 0 end |
#dump_schema(*args, &block) ⇒ Object
46 47 48 |
# File 'lib/ardb/adapter_spy.rb', line 46 def dump_schema(*args, &block) self.dump_schema_called_count += 1 end |
#dump_schema_called? ⇒ Boolean
42 43 44 |
# File 'lib/ardb/adapter_spy.rb', line 42 def dump_schema_called? self.dump_schema_called_count > 0 end |
#load_schema(*args, &block) ⇒ Object
58 59 60 |
# File 'lib/ardb/adapter_spy.rb', line 58 def load_schema(*args, &block) self.load_schema_called_count += 1 end |
#load_schema_called? ⇒ Boolean
54 55 56 |
# File 'lib/ardb/adapter_spy.rb', line 54 def load_schema_called? self.load_schema_called_count > 0 end |
#migrate_db(*args, &block) ⇒ Object
106 107 108 |
# File 'lib/ardb/adapter_spy.rb', line 106 def migrate_db(*args, &block) self.migrate_db_called_count += 1 end |
#migrate_db_called? ⇒ Boolean
102 103 104 |
# File 'lib/ardb/adapter_spy.rb', line 102 def migrate_db_called? self.migrate_db_called_count > 0 end |