aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/abstract_unit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test/abstract_unit.rb')
-rw-r--r--activesupport/test/abstract_unit.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/test/abstract_unit.rb b/activesupport/test/abstract_unit.rb
index 25ed962c23..34c9e920bc 100644
--- a/activesupport/test/abstract_unit.rb
+++ b/activesupport/test/abstract_unit.rb
@@ -22,11 +22,11 @@ ENV['NO_RELOAD'] = '1'
require 'active_support'
def uses_memcached(test_name)
- require 'memcache'
+ require 'dalli'
begin
- MemCache.new('localhost:11211').stats
+ Dalli::Client.new('localhost:11211').stats
yield
- rescue MemCache::MemCacheError
+ rescue Dalli::DalliError
$stderr.puts "Skipping #{test_name} tests. Start memcached and try again."
end
end