Sha256: 02282bddee606b1ba31fe5faf9f614cd79b96e7b38bc8be178cbaa18d8f2dfef
Contents?: true
Size: 440 Bytes
Versions: 4
Compression:
Stored size: 440 Bytes
Contents
require 'spec_helper' describe Alf, '.database' do subject{ Alf.database(Path.dir, schema_cache: false){|d| @seen = d} } it{ should be_a(Alf::Database) } it 'coerces the adapter' do subject.adapter.should be_a(Alf::Adapter::Folder) end it 'sets the options' do subject.schema_cache?.should eq(false) end it 'yields the options to the block' do subject @seen.should be_a(Alf::Database::Options) end end
Version data entries
4 entries across 4 versions & 1 rubygems