Parameters:
The table name to create.
Passed to before/after in the test context. Rspec only.
before
after
Passed to WithModel::Table#initialize.
Passed to WithModel::Table#initialize (like WithModel::Model::DSL#table).
52 53 54 55 56 57
# File 'lib/with_model.rb', line 52 def with_table(name, scope: nil, **options, &block) runner = options.delete(:runner) table = Table.new name, options, &block setup_object(table, scope: scope, runner: runner) end