spec/memcache_spec.rb in itrigga-cache-0.3.0 vs spec/memcache_spec.rb in itrigga-cache-1.1.0
- old
+ new
@@ -1,9 +1,10 @@
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
describe Itrigga::Cache::Memcache do
before do
Itrigga::Cache::Memcache.reset_instance
+ ::Memcached = Module.new unless defined?(::Memcached)
::Memcached.stub!(:new).and_return(@memcached = mock("Memcached"))
@instance = Itrigga::Cache::Memcache.instance
end
it "should include Singleton" do
\ No newline at end of file