diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2017-01-31 12:12:23 +0000 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2017-01-31 12:12:23 +0000 |
commit | 659a651aa294c335e519b4c72bbd052b3199a793 (patch) | |
tree | a36a95dd652717624034c553bf18c7d66156ccf5 /test/tc_byteback_snapshot.rb | |
parent | 38c89a9e32a67f96b40d756a5c356f8c31247ab9 (diff) |
First pass with rubocoprubocop
Diffstat (limited to 'test/tc_byteback_snapshot.rb')
-rw-r--r-- | test/tc_byteback_snapshot.rb | 2 |
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") |