Sha256: d469bd06d91c7fc02757c63fa9f8a3deec796afc9812930c30f2b3c2e8e986eb

Contents?: true

Size: 604 Bytes

Versions: 3

Compression:

Stored size: 604 Bytes

Contents

require_relative '../../test_helper'

module Troo
  describe Database do
    let(:described_class) { Database }
    let(:configuration)   { stub(database: '1') }
    let(:options)         { {} }

    before  { Ohm.stubs(:connect) }

    subject { described_class.new(configuration, options) }

    it { subject.must_be_instance_of(Troo::Database) }

    describe '#connect' do
      subject { described_class.connect(configuration, options) }

      it { subject.must_be_instance_of(NilClass) }

      it 'connects to the persistence layer' do
        subject.must_equal(nil)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
troo-0.0.15 test/lib/troo/database_test.rb
troo-0.0.14 test/lib/troo/database_test.rb
troo-0.0.13 test/lib/troo/database_test.rb