aboutsummaryrefslogtreecommitdiff
path: root/test/time_test.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-08-10 13:54:53 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-08-10 13:54:53 +0100
commit8621a1b4914f70975f83ad59d31da25d5c01aa1a (patch)
tree2ff85276016c2ccf22ea618ef0417226bbb29d59 /test/time_test.rb
parentd650c2dad3ae58caeebb598e7624e80ee2a4b71a (diff)
Updated during_runner to work better.
--HG-- rename : test/time_test.rb => test/tc_mauve_time.rb
Diffstat (limited to 'test/time_test.rb')
-rw-r--r--test/time_test.rb43
1 files changed, 0 insertions, 43 deletions
diff --git a/test/time_test.rb b/test/time_test.rb
deleted file mode 100644
index 0749fef..0000000
--- a/test/time_test.rb
+++ /dev/null
@@ -1,43 +0,0 @@
-$: << "../lib/"
-
-require 'test/unit'
-require 'mauve/mauve_time'
-require 'pp'
-
-class TestMauveTime < Test::Unit::TestCase
-
- def test_in_x_hours
-
- #
- # 5pm on a Friday
- #
- t = Time.local(2011,6,3,17,14,32)
-
- #
- # Working hours..
- #
- hour_0 = Time.local(2011,6,6,8,30,0)
- hour_1 = Time.local(2011,6,6,9,30,0)
-
- assert_equal(hour_1, t.in_x_hours(1,"working"))
- assert_equal(hour_0, t.in_x_hours(0,"working"))
-
- #
- # 4.45pm on a Friday
- #
- t = Time.local(2011,6,3,16,45,32)
-
- #
- # Working hours..
- #
- hour_0 = Time.local(2011,6,3,16,45,32)
- hour_1 = Time.local(2011,6,6,9,15,32)
-
- assert_equal(hour_1, t.in_x_hours(1,"working"))
- assert_equal(hour_0, t.in_x_hours(0,"working"))
-
-
- end
-
-
-end