cartodb-4.42/spec/factories/database_configuration_contexts.rb

10 lines
243 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
shared_context 'database configuration' do
before(:each) do
@db = SequelRails.connection
@repository = DataRepository::Backend::Sequel.new(@db, :visualizations)
CartoDB::Visualization.repository = @repository
end
end