Sha256: 54336f2ba9195a44709c20f0db5ab499864304197ddb3bf3a03dd8a64fc521ef
Contents?: true
Size: 634 Bytes
Versions: 3
Compression:
Stored size: 634 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rules_engine-0.3.2 | spec/lib/rules_engine/cache_spec.rb |
rules_engine-0.3.1 | spec/lib/rules_engine/cache_spec.rb |
rules_engine-0.3.0 | spec/lib/rules_engine/cache_spec.rb |