Module: ROM::Lint::TestGateway
- Extended by:
- Test
- Defined in:
- core/lib/rom/lint/test.rb
Overview
This is a simple lint-test for gateway class to ensure the basic interfaces are in place
Instance Attribute Summary collapse
-
#gateway ⇒ Object
readonly
Returns the gateway class.
-
#identifier ⇒ Object
readonly
Returns the gateway identifier e.g.
-
#uri ⇒ Object
readonly
Returns gateway's URI e.g.
Class Method Summary collapse
-
.define_test_method(name, &block) ⇒ Object
extended
from Test
private
Defines a test method converting lint failures to assertions.
Instance Attribute Details
#gateway ⇒ Object (readonly)
Returns the gateway class
52 53 54 |
# File 'core/lib/rom/lint/test.rb', line 52 def gateway @gateway end |
#identifier ⇒ Object (readonly)
Returns the gateway identifier e.g. +:memory+
47 48 49 |
# File 'core/lib/rom/lint/test.rb', line 47 def identifier @identifier end |
#uri ⇒ Object (readonly)
Returns gateway's URI e.g. "super_db://something"
57 58 59 |
# File 'core/lib/rom/lint/test.rb', line 57 def uri @uri end |
Class Method Details
.define_test_method(name, &block) ⇒ Object Originally defined in module Test
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Defines a test method converting lint failures to assertions