Skip to content

Commit 935cf8d

Browse files
authored
Merge pull request rails#42564 from ghiculescu/cleanup-cache-tests
Test cleanup for cache store tests
2 parents d6a1cff + 9a87546 commit 935cf8d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

activesupport/test/cache/stores/file_store_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def setup
152152
super
153153
end
154154

155-
def forward_compatibility
155+
def test_forward_compatibility
156156
previous_format = ActiveSupport::Cache.format_version
157157
ActiveSupport::Cache.format_version = 6.1
158158
@old_store = lookup_store
@@ -162,7 +162,7 @@ def forward_compatibility
162162
assert_equal "bar", @cache.read("foo")
163163
end
164164

165-
def forward_compatibility
165+
def test_backward_compatibility
166166
previous_format = ActiveSupport::Cache.format_version
167167
ActiveSupport::Cache.format_version = 6.1
168168
@old_store = lookup_store

activesupport/test/cache/stores/mem_cache_store_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def setup
289289
super
290290
end
291291

292-
def forward_compatibility
292+
def test_forward_compatibility
293293
previous_format = ActiveSupport::Cache.format_version
294294
ActiveSupport::Cache.format_version = 6.1
295295
@old_store = lookup_store
@@ -299,7 +299,7 @@ def forward_compatibility
299299
assert_equal "bar", @cache.read("foo")
300300
end
301301

302-
def forward_compatibility
302+
def test_backward_compatibility
303303
previous_format = ActiveSupport::Cache.format_version
304304
ActiveSupport::Cache.format_version = 6.1
305305
@old_store = lookup_store

activesupport/test/cache/stores/redis_cache_store_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def before_setup
216216
super
217217
end
218218

219-
def forward_compatibility
219+
def test_forward_compatibility
220220
previous_format = ActiveSupport::Cache.format_version
221221
ActiveSupport::Cache.format_version = 6.1
222222
@old_store = lookup_store
@@ -226,7 +226,7 @@ def forward_compatibility
226226
assert_equal "bar", @cache.read("foo")
227227
end
228228

229-
def forward_compatibility
229+
def test_backward_compatibility
230230
previous_format = ActiveSupport::Cache.format_version
231231
ActiveSupport::Cache.format_version = 6.1
232232
@old_store = lookup_store

0 commit comments

Comments
 (0)