Sha256: 878c822964ba36e69827841cb47740a4646a8392fddc2aeb8a803d130abf9ecb

Contents?: true

Size: 529 Bytes

Versions: 4

Compression:

Stored size: 529 Bytes

Contents

require 'spec_helper'
module Alf
  class Database
    describe Options, "schema_cache?" do

      subject{ opts.schema_cache? }

      let(:opts){ Options.new }

      context 'by default' do

        it { should eq(true) }
      end

      context 'when explicitely set' do
        before{ opts.schema_cache = false }

        it{ should eq(false) }
      end

      context 'when explicitely set but coercion needed' do
        before{ opts.schema_cache = "false" }

        it{ should eq(false) }
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-database/options/test_schema_cache.rb
alf-core-0.14.0 spec/unit/alf-database/options/test_schema_cache.rb
alf-core-0.13.1 spec/unit/alf-database/options/test_schema_cache.rb
alf-core-0.13.0 spec/unit/alf-database/options/test_schema_cache.rb