summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 13:03:12 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 13:03:12 +0000
commit2921a7c7b8ab27350108ae0e678947085ded7b94 (patch)
tree45f8d2a48cf2d0ff37f1a1e18c736bd68f090b99 /t
parent7473d89d4cb01a50921b9edcd262838b1adff437 (diff)
Don't use "::" for method-calls.
Instead prefer ".". Flagged by rubocop
Diffstat (limited to 't')
-rwxr-xr-xt/test-custodian-util-timespan.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/t/test-custodian-util-timespan.rb b/t/test-custodian-util-timespan.rb
index 83eb59f..881f5a5 100755
--- a/t/test-custodian-util-timespan.rb
+++ b/t/test-custodian-util-timespan.rb
@@ -29,7 +29,7 @@ class TestTimeSpanUtil < Test::Unit::TestCase
def test_to_hour
for hour in 0..23
- assert_equal( hour, Custodian::Util::TimeSpan::to_hour(hour))
+ assert_equal( hour, Custodian::Util::TimeSpan.to_hour(hour))
end
#
@@ -55,11 +55,11 @@ class TestTimeSpanUtil < Test::Unit::TestCase
# Ensure AM times work well
#
for hour in 0..11
- assert_equal( hour, Custodian::Util::TimeSpan::to_hour( "#{hour}am"))
+ assert_equal( hour, Custodian::Util::TimeSpan.to_hour( "#{hour}am"))
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
@@ -215,14 +215,14 @@ class TestTimeSpanUtil < Test::Unit::TestCase
def test_wrap_around
for h in 00..23
- assert_equal( 1, Custodian::Util::TimeSpan::to_hours( h,h ).size() )
+ assert_equal( 1, Custodian::Util::TimeSpan.to_hours( h,h ).size() )
end
#
# But the time-period 00-23 is a full day
#
assert_equal( 24,
- Custodian::Util::TimeSpan::to_hours( 0,23 ).size() )
+ Custodian::Util::TimeSpan.to_hours( 0,23 ).size() )
end