summaryrefslogtreecommitdiff
path: root/t/test-custodian-util-bytemark.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2013-05-15 14:10:37 +0100
committerSteve Kemp <steve@steve.org.uk>2013-05-15 14:10:37 +0100
commitca28243dce53f0feab9efb535b00f594e511c71c (patch)
treeed0d064d513ab269ee1ddf864b82c621a9246944 /t/test-custodian-util-bytemark.rb
parent2497ad1390f5a7081ff7d8e740a767cc31295705 (diff)
Correctly work if we have no settings file present.
Previously we'd try to find the setting "foo" like so: @settings['foo'].to_i || 5 This would fail if the setting wasn't defined, because nil.to_i results in 0. But we must call to_i otherwise we'll have issues comparing strings/numbers.
Diffstat (limited to 't/test-custodian-util-bytemark.rb')
0 files changed, 0 insertions, 0 deletions