spec/shared/database.rb in rom-repository-0.0.2 vs spec/shared/database.rb in rom-repository-0.1.0
- old
+ new
@@ -1,8 +1,9 @@
RSpec.shared_context 'database' do
- let(:setup) { ROM.setup(:sql, 'postgres://localhost/rom') }
+ let(:setup) { ROM.setup(:sql, uri) }
let(:conn) { setup.gateways[:default].connection }
let(:rom) { setup.finalize }
+ let(:uri) { 'postgres://localhost/rom_repository' }
before do
[:tags, :tasks, :users].each { |table| conn.drop_table?(table) }
conn.create_table :users do