@@ -146,26 +146,28 @@ def test_store_objects_should_be_immutable
146
146
end
147
147
end
148
148
149
- class MemCacheStoreTest < Test ::Unit ::TestCase
150
- def setup
151
- @cache = ActiveSupport ::Cache . lookup_store ( :mem_cache_store )
152
- @cache . clear
153
- end
149
+ uses_memcached 'memcached backed store' do
150
+ class MemCacheStoreTest < Test ::Unit ::TestCase
151
+ def setup
152
+ @cache = ActiveSupport ::Cache . lookup_store ( :mem_cache_store )
153
+ @cache . clear
154
+ end
154
155
155
- include CacheStoreBehavior
156
+ include CacheStoreBehavior
156
157
157
- def test_store_objects_should_be_immutable
158
- @cache . write ( 'foo' , 'bar' )
159
- @cache . read ( 'foo' ) . gsub! ( /.*/ , 'baz' )
160
- assert_equal 'bar' , @cache . read ( 'foo' )
158
+ def test_store_objects_should_be_immutable
159
+ @cache . write ( 'foo' , 'bar' )
160
+ @cache . read ( 'foo' ) . gsub! ( /.*/ , 'baz' )
161
+ assert_equal 'bar' , @cache . read ( 'foo' )
162
+ end
161
163
end
162
- end
163
164
164
- class CompressedMemCacheStore < Test ::Unit ::TestCase
165
- def setup
166
- @cache = ActiveSupport ::Cache . lookup_store ( :compressed_mem_cache_store )
167
- @cache . clear
168
- end
165
+ class CompressedMemCacheStore < Test ::Unit ::TestCase
166
+ def setup
167
+ @cache = ActiveSupport ::Cache . lookup_store ( :compressed_mem_cache_store )
168
+ @cache . clear
169
+ end
169
170
170
- include CacheStoreBehavior
171
+ include CacheStoreBehavior
172
+ end
171
173
end
0 commit comments