Sha256: 5ed1885d654babb4e9063128948f4aa4421345a5e0021f8f1d129abf010cb9b5

Contents?: true

Size: 898 Bytes

Versions: 11

Compression:

Stored size: 898 Bytes

Contents

require 'spec_helper'

describe CanTango::Configuration::Adapters do
  subject { CanTango.config.adapters }

  describe 'should run adapter for moneta' do
    before do
      subject.adapter :moneta
    end

    specify { CanTango.config.adapters.registered?(:moneta).should be_true }
    # specify { lambda { CanTango::MonetaCache }.should_not raise_error }
    # specify { lambda { CanTango::MonetaAbilityCache }.should_not raise_error }
    # specify { lambda { CanTango::MonetaPermitStore }.should_not raise_error }
  end

  specify { lambda { CanTango::Ability::Cache::Kompiler }.should raise_error }

  describe 'should run adapter for sourcify compiler' do

    before do
      subject.adapter :compiler
    end

    specify { CanTango.config.adapters.registered?(:compiler).should be_true }
    # specify { lambda { CanTango::Ability::Cache::Kompiler }.should_not raise_error }
  end
end


Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cantango-config-0.1.9.2 spec/cantango/configuration/adapters_spec.rb
cantango-config-0.1.8.1 spec/cantango/configuration/adapters_spec.rb
cantango-config-0.1.8 spec/cantango/configuration/adapters_spec.rb
cantango-config-0.1.7 spec/cantango/configuration/adapters_spec.rb
cantango-config-0.1.6 spec/cantango/configuration/adapters_spec.rb
cantango-config-0.1.5 spec/cantango/configuration/adapters_spec.rb
cantango-config-0.1.4 spec/cantango/configuration/adapters_spec.rb
cantango-config-0.1.3 spec/cantango/configuration/adapters_spec.rb
cantango-config-0.1.2 spec/cantango/configuration/adapters_spec.rb
cantango-config-0.1.1 spec/cantango/configuration/adapters_spec.rb
cantango-config-0.1.0 spec/cantango/configuration/adapters_spec.rb