summaryrefslogtreecommitdiff
path: root/t/test-custodian-util-timespan.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 13:21:36 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 13:21:36 +0000
commitd07ac8ecbedb4831e5aa677b8878f0e8eb37e363 (patch)
treef7bc6a6fdd381ffa7d73f487d3f10f6e65a798e4 /t/test-custodian-util-timespan.rb
parent16b766cff0984494c7b81c1efc08e6386ae819f8 (diff)
Whitespace fixups.
These were all identified and suggested by rubocop.
Diffstat (limited to 't/test-custodian-util-timespan.rb')
-rwxr-xr-xt/test-custodian-util-timespan.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/t/test-custodian-util-timespan.rb b/t/test-custodian-util-timespan.rb
index 89dfbcd..72428be 100755
--- a/t/test-custodian-util-timespan.rb
+++ b/t/test-custodian-util-timespan.rb
@@ -59,7 +59,7 @@ class TestTimeSpanUtil < Test::Unit::TestCase
end
for hour in 0..11
- assert_equal(12 +hour, Custodian::Util::TimeSpan.to_hour("#{hour}pm"))
+ assert_equal(12 + hour, Custodian::Util::TimeSpan.to_hour("#{hour}pm"))
end
end
@@ -171,25 +171,25 @@ class TestTimeSpanUtil < Test::Unit::TestCase
#
# The preceeding + successive hours shouldn't be.
#
- assert(! Custodian::Util::TimeSpan.inside?(open, close, 15))
- assert(! Custodian::Util::TimeSpan.inside?(open, close, 19))
+ assert(!Custodian::Util::TimeSpan.inside?(open, close, 15))
+ assert(!Custodian::Util::TimeSpan.inside?(open, close, 19))
#
# That is true for the string-versions too
#
- assert(! Custodian::Util::TimeSpan.inside?(open, close, '3pm'))
- assert(! Custodian::Util::TimeSpan.inside?(open, close, '7pm'))
+ assert(!Custodian::Util::TimeSpan.inside?(open, close, '3pm'))
+ assert(!Custodian::Util::TimeSpan.inside?(open, close, '7pm'))
#
# Random hours should be outside too.
#
- assert(! Custodian::Util::TimeSpan.inside?(open, close, 3))
- assert(! Custodian::Util::TimeSpan.inside?(open, close, '3am'))
- assert(! Custodian::Util::TimeSpan.inside?(open, close, 7))
- assert(! Custodian::Util::TimeSpan.inside?(open, close, '7am'))
- assert(! Custodian::Util::TimeSpan.inside?(open, close, 9))
- assert(! Custodian::Util::TimeSpan.inside?(open, close, '9am'))
+ assert(!Custodian::Util::TimeSpan.inside?(open, close, 3))
+ assert(!Custodian::Util::TimeSpan.inside?(open, close, '3am'))
+ assert(!Custodian::Util::TimeSpan.inside?(open, close, 7))
+ assert(!Custodian::Util::TimeSpan.inside?(open, close, '7am'))
+ assert(!Custodian::Util::TimeSpan.inside?(open, close, 9))
+ assert(!Custodian::Util::TimeSpan.inside?(open, close, '9am'))
end