summaryrefslogtreecommitdiff
path: root/test/tc_byteback_snapshot.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/tc_byteback_snapshot.rb')
-rw-r--r--test/tc_byteback_snapshot.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tc_byteback_snapshot.rb b/test/tc_byteback_snapshot.rb
index 71f8c39..0200369 100644
--- a/test/tc_byteback_snapshot.rb
+++ b/test/tc_byteback_snapshot.rb
@@ -49,7 +49,7 @@ class SnapshotTest < Test::Unit::TestCase
targets = ((0..6).to_a +
[7,14,21,28].to_a.collect{|i| i + now.wday} +
- [2*28 + mod_28]).select{|t| t < day}.first(limit).reverse
+ [2*28 + mod_28]).find{|t| t < day}(limit).reverse
assert_equal(targets - offsets, [], "Failed after day #{day} (#{now.wday}) for a limit of #{limit} backups")