summaryrefslogtreecommitdiff
path: root/test/tc_byteback_snapshot.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2017-01-31 12:12:23 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2017-01-31 12:12:23 +0000
commit659a651aa294c335e519b4c72bbd052b3199a793 (patch)
treea36a95dd652717624034c553bf18c7d66156ccf5 /test/tc_byteback_snapshot.rb
parent38c89a9e32a67f96b40d756a5c356f8c31247ab9 (diff)
First pass with rubocoprubocop
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")