cartodb-4.42/spec/factories/database_configuration_contexts.rb
2024-04-06 05:25:13 +00: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