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.
-
#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
- #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
#create_db_called_count ⇒ Object
Returns the value of attribute create_db_called_count.
22 23 24 |
# File 'lib/ardb/adapter_spy.rb', line 22 def create_db_called_count @create_db_called_count end |
#drop_db_called_count ⇒ Object
Returns the value of attribute drop_db_called_count.
22 23 24 |
# File 'lib/ardb/adapter_spy.rb', line 22 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 |
#dump_schema_called_count ⇒ Object
Returns the value of attribute dump_schema_called_count.
21 22 23 |
# File 'lib/ardb/adapter_spy.rb', line 21 def dump_schema_called_count @dump_schema_called_count end |
#load_schema_called_count ⇒ Object
Returns the value of attribute load_schema_called_count.
21 22 23 |
# File 'lib/ardb/adapter_spy.rb', line 21 def load_schema_called_count @load_schema_called_count end |
#migrate_db_called_count ⇒ Object
Returns the value of attribute migrate_db_called_count.
23 24 25 |
# File 'lib/ardb/adapter_spy.rb', line 23 def migrate_db_called_count @migrate_db_called_count end |
Instance Method Details
#create_db(*args, &block) ⇒ Object
81 82 83 |
# File 'lib/ardb/adapter_spy.rb', line 81 def create_db(*args, &block) self.create_db_called_count += 1 end |
#create_db_called? ⇒ Boolean
77 78 79 |
# File 'lib/ardb/adapter_spy.rb', line 77 def create_db_called? self.create_db_called_count > 0 end |
#drop_db(*args, &block) ⇒ Object
69 70 71 |
# File 'lib/ardb/adapter_spy.rb', line 69 def drop_db(*args, &block) self.drop_db_called_count += 1 end |
#drop_db_called? ⇒ Boolean
65 66 67 |
# File 'lib/ardb/adapter_spy.rb', line 65 def drop_db_called? self.drop_db_called_count > 0 end |
#drop_tables(*args, &block) ⇒ Object
33 34 35 |
# File 'lib/ardb/adapter_spy.rb', line 33 def drop_tables(*args, &block) self.drop_tables_called_count += 1 end |
#drop_tables_called? ⇒ Boolean
29 30 31 |
# File 'lib/ardb/adapter_spy.rb', line 29 def drop_tables_called? self.drop_tables_called_count > 0 end |
#dump_schema(*args, &block) ⇒ Object
45 46 47 |
# File 'lib/ardb/adapter_spy.rb', line 45 def dump_schema(*args, &block) self.dump_schema_called_count += 1 end |
#dump_schema_called? ⇒ Boolean
41 42 43 |
# File 'lib/ardb/adapter_spy.rb', line 41 def dump_schema_called? self.dump_schema_called_count > 0 end |
#load_schema(*args, &block) ⇒ Object
57 58 59 |
# File 'lib/ardb/adapter_spy.rb', line 57 def load_schema(*args, &block) self.load_schema_called_count += 1 end |
#load_schema_called? ⇒ Boolean
53 54 55 |
# File 'lib/ardb/adapter_spy.rb', line 53 def load_schema_called? self.load_schema_called_count > 0 end |
#migrate_db(*args, &block) ⇒ Object
93 94 95 |
# File 'lib/ardb/adapter_spy.rb', line 93 def migrate_db(*args, &block) self.migrate_db_called_count += 1 end |
#migrate_db_called? ⇒ Boolean
89 90 91 |
# File 'lib/ardb/adapter_spy.rb', line 89 def migrate_db_called? self.migrate_db_called_count > 0 end |