Sha256: 0a08b73d3a8d1e56fc2a675e8a78ecf01f418cad713a71ad610600bbaa0f12f5

Contents?: true

Size: 571 Bytes

Versions: 1

Compression:

Stored size: 571 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')

describe "RulesEngine::Cache" do

  it "should set perform caching to false if cahing not set" do
    RulesEngine::Cache.cache_store=nil
    RulesEngine::Cache.should_not be_perform_caching
  end
  
  it "should set the cache store using ActiveSupport::Cache.lookup_store" do
    ActiveSupport::Cache.should_receive(:lookup_store).with('test cache').and_return("mock store")    
    RulesEngine::Cache.cache_store="test cache"
    RulesEngine::Cache.cache_store.should == "mock store"
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rules_engine-0.3.3 spec/lib/rules_engine/cache_spec.rb