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