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

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

#relation(*args) ⇒ Object



6
7
8
# File 'lib/dart/database/test_helpers.rb', line 6

def relation(*args)
  Relation.new(*args)
end