Sha256: 76fb051e1ba34347510f50dbf150fc99bb80e9bec6efc747d6923e0051bbb89b

Contents?: true

Size: 631 Bytes

Versions: 17

Compression:

Stored size: 631 Bytes

Contents

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

describe "RulesEngine::Cache" do
  before(:each) do
    ActiveSupport::Cache.stub!(:lookup_store).and_return("mock store")    
  end
  
  it "should set perform caching to false if cahing not set" do
    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

17 entries across 17 versions & 1 rubygems

Version Path
rules_engine-0.2.0 spec/rules_engine/cache_spec.rb
rules_engine-0.1.10 spec/rules_engine/cache_spec.rb
rules_engine-0.1.9 spec/rules_engine/cache_spec.rb
rules_engine-0.1.8 spec/rules_engine/cache_spec.rb
rules_engine-0.1.7 spec/rules_engine/cache_spec.rb
rules_engine-0.1.6 spec/rules_engine/cache_spec.rb
rules_engine-0.1.5 spec/rules_engine/cache_spec.rb
rules_engine-0.1.4 spec/rules_engine/cache_spec.rb
rules_engine-0.1.3 spec/rules_engine/cache_spec.rb
rules_engine-0.1.1 spec/rules_engine/cache_spec.rb
rules_engine-0.1.0 spec/rules_engine/cache_spec.rb
rules_engine-0.0.8 spec/rules_engine/cache_spec.rb
rules_engine-0.0.7 spec/rules_engine/cache_spec.rb
rules_engine-0.0.6 spec/rules_engine/cache_spec.rb
rules_engine-0.0.5 spec/rules_engine/cache_spec.rb
rules_engine-0.0.4 spec/rules_engine/cache_spec.rb
rules_engine-0.0.3 spec/rules_engine/cache_spec.rb