spec/itrigga-cache_spec.rb in itrigga-cache-0.3.0 vs spec/itrigga-cache_spec.rb in itrigga-cache-1.1.0
- old
+ new
@@ -18,9 +18,13 @@
describe Itrigga::Cache do
before do
+
+ Memcached = Module.new unless defined?(Memcached)
+ Memcached::NotFound = Class.new unless defined?(Memcached::NotFound)
+
Itrigga::Cache.setup!(:backend=>:filecache)
@klass = TriggaCacheTestClass.new
@klass.stub!(:cache_log) # stub out the logging method in tests
end
\ No newline at end of file