Sha256: 5fe7f3b4e03f3bce8d7eb907dd9a2412540e6028058fd6b534fd8deccf0d26ad

Contents?: true

Size: 438 Bytes

Versions: 3

Compression:

Stored size: 438 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) }

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

      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.12 test/lib/troo/models/database_test.rb
troo-0.0.11 test/lib/troo/models/database_test.rb
troo-0.0.10 test/lib/troo/models/database_test.rb