cartodb-4.29/spec/factories/database_configuration_contexts.rb
2020-06-15 10:58:47 +08:00

10 lines
243 B
Ruby

shared_context 'database configuration' do
before(:each) do
@db = SequelRails.connection
@repository = DataRepository::Backend::Sequel.new(@db, :visualizations)
CartoDB::Visualization.repository = @repository
end
end