Sha256: f157f838e9854ddd281c8d0776d2a57d15a408655999c0bc67648c89ca20702a

Contents?: true

Size: 626 Bytes

Versions: 12

Compression:

Stored size: 626 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Pupa::Processor::Connection do
  describe '.new' do
    it 'should use MongoDB' do
      Pupa::Processor::Connection::MongoDBAdapter.should_receive(:new).with('mongodb://localhost:27017/pupa').and_call_original
      Pupa::Processor::Connection.new('mongodb://localhost:27017/pupa')
    end

    it 'should use PostgreSQL' do
      Pupa::Processor::Connection::PostgreSQLAdapter.should_receive(:new).with('postgres://localhost:5432/pupa').and_call_original
      Pupa::Processor::Connection.new('postgres://localhost:5432/pupa')
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pupa-0.1.11 spec/processor/connection_spec.rb
pupa-0.1.10 spec/processor/connection_spec.rb
pupa-0.1.9 spec/processor/connection_spec.rb
pupa-0.1.8 spec/processor/connection_spec.rb
pupa-0.1.7 spec/processor/connection_spec.rb
pupa-0.1.6 spec/processor/connection_spec.rb
pupa-0.1.5 spec/processor/connection_spec.rb
pupa-0.1.4 spec/processor/connection_spec.rb
pupa-0.1.3 spec/processor/connection_spec.rb
pupa-0.1.2 spec/processor/connection_spec.rb
pupa-0.1.1 spec/processor/connection_spec.rb
pupa-0.1.0 spec/processor/connection_spec.rb