Sha256: 3335db214cb76083267f757532b944cfe46ef61bb1a17767b4d10de55de24126

Contents?: true

Size: 891 Bytes

Versions: 2

Compression:

Stored size: 891 Bytes

Contents

require 'spec_helper'

describe CanTango::Config::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

2 entries across 2 versions & 1 rubygems

Version Path
cantango-config-0.2.1 spec/cantango/config/adapters_spec.rb
cantango-config-0.2.0 spec/cantango/config/adapters_spec.rb