From f8ebb68de7e35bf25efef31888e2691e3b003dd4 Mon Sep 17 00:00:00 2001 From: Evan Weaver Date: Wed, 2 Sep 2009 22:21:39 -0700 Subject: [PATCH] Fix wacky Mocha bug. --- test/unit/memcached_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/memcached_test.rb b/test/unit/memcached_test.rb index af72af9..6e36b4d 100644 --- a/test/unit/memcached_test.rb +++ b/test/unit/memcached_test.rb @@ -697,7 +697,7 @@ class MemcachedTest < Test::Unit::TestCase end def test_errno_message - Rlibmemcached::MemcachedServerSt.any_instance.expects("cached_errno").returns(1) + Rlibmemcached::MemcachedServerSt.any_instance.stubs("cached_errno").returns(1) @cache.send(:check_return_code, Rlibmemcached::MEMCACHED_ERRNO, key) rescue Memcached::SystemError => e assert_match /^Errno 1: "Operation not permitted". Key/, e.message