cartodb/spec/factories/database_configuration_contexts.rb

10 lines
243 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +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