Initial commit
This commit is contained in:
19
spec/support/db/helpers.rb
Normal file
19
spec/support/db/helpers.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
module Test
|
||||
module DB
|
||||
module Helpers
|
||||
module_function
|
||||
|
||||
def relations
|
||||
rom.relations
|
||||
end
|
||||
|
||||
def rom
|
||||
Hanami.app["persistence.rom"]
|
||||
end
|
||||
|
||||
def db
|
||||
Hanami.app["persistence.db"]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user