Sha256: 260873c4802de8c31e3a9b4dbfb06e2718acf2490d9c3e1ea9582caf83a4a95c

Contents?: true

Size: 762 Bytes

Versions: 21

Compression:

Stored size: 762 Bytes

Contents

require 'spec_helper'

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

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

    specify { lambda { CanTango::Cache::MonetaCache }.should_not raise_error }
    specify { lambda { CanTango::Ability::Cache::MonetaCache }.should_not raise_error }
    specify { lambda { CanTango::PermissionEngine::MonetaStore }.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 { lambda { CanTango::Ability::Cache::Kompiler }.should_not raise_error }
  end
end


Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
cantango-0.8.5.1 spec/cantango/configuration/adapter_spec.rb