Module: Dart::Database::TestHelpers
- Defined in:
- lib/dart/database/test_helpers.rb
Overview
Test support class used to easily construct associations
Instance Method Summary collapse
- #many_to_many_ass(*args) ⇒ Object
- #many_to_one_ass(*args) ⇒ Object
- #one_to_many_ass(*args) ⇒ Object
- #relation(*args) ⇒ Object
Instance Method Details
#many_to_many_ass(*args) ⇒ Object
18 19 20 |
# File 'lib/dart/database/test_helpers.rb', line 18 def many_to_many_ass(*args) ManyToManyAssociation.new(*args) end |
#many_to_one_ass(*args) ⇒ Object
10 11 12 |
# File 'lib/dart/database/test_helpers.rb', line 10 def many_to_one_ass(*args) ManyToOneAssociation.new(*args) end |
#one_to_many_ass(*args) ⇒ Object
14 15 16 |
# File 'lib/dart/database/test_helpers.rb', line 14 def one_to_many_ass(*args) OneToManyAssociation.new(*args) end |