Sha256: 208a852fd559d48d0ff28c8c01ac6fbb1fb0ce602755fd9f696686e07b1a488e
Contents?: true
Size: 634 Bytes
Versions: 5
Compression:
Stored size: 634 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Pupa::Processor::Connection do describe '.new' do it 'should use MongoDB' do expect(Pupa::Processor::Connection::MongoDBAdapter).to receive(:new).with('mongodb://localhost:27017/pupa').and_call_original Pupa::Processor::Connection.new('mongodb://localhost:27017/pupa') end it 'should use PostgreSQL' do expect(Pupa::Processor::Connection::PostgreSQLAdapter).to receive(:new).with('postgres://localhost:5432/pupa').and_call_original Pupa::Processor::Connection.new('postgres://localhost:5432/pupa') end end end
Version data entries
5 entries across 5 versions & 1 rubygems