spec/support/helpers.rb in rom-sql-0.9.1 vs spec/support/helpers.rb in rom-sql-1.0.0.beta1

- old
+ new

@@ -4,6 +4,13 @@ end def assoc_name(*args) ROM::SQL::Association::Name[*args] end + + def define_schema(name, attrs) + ROM::SQL::Schema.define( + name, + attributes: attrs.map { |key, value| ROM::SQL::Type.new(value.meta(name: key)) } + ) + end end