| Class | Og::MockDatabase |
| In: |
lib/og/mock.rb
|
| Parent: | ::FlexMock |
A utility object to Mock a Database in test units. Extends the standard FlexMock object.
| config | [RW] | hash of configuration options. |
| connection_pool | [RW] | Pool of connections to the backend. |
| managed_classes | [RW] | Managed classes. |
Get a connection from the pool to access the database. Stores the connection in a thread-local variable.