updated test to check for days using numbers (1-7) instead of strings (mon,wed,tue)

This commit is contained in:
Javan Makhmali 2009-07-01 00:36:06 -04:00
parent 5ffc2b48bd
commit c2272dd3ec

View File

@ -13,7 +13,7 @@ class OutputAtTest < Test::Unit::TestCase
end
should "output the runner using that path" do
assert_match '2 5 * * mon-fri blahblah', @output
assert_match '2 5 * * 1-5 blahblah', @output
end
end
@ -28,8 +28,8 @@ class OutputAtTest < Test::Unit::TestCase
end
should "output the runner using that path" do
assert_match '2 5 * * mon-fri blahblah', @output
assert_match '52 15 * * mon-fri blahblah', @output
assert_match '2 5 * * 1-5 blahblah', @output
assert_match '52 15 * * 1-5 blahblah', @output
end
end
@ -44,8 +44,8 @@ class OutputAtTest < Test::Unit::TestCase
end
should "output the runner using that path" do
assert_match '2 5 * * mon-fri blahblah', @output
assert_match '52 15 * * mon-fri blahblah', @output
assert_match '2 5 * * 1-5 blahblah', @output
assert_match '52 15 * * 1-5 blahblah', @output
end
end
@ -60,7 +60,7 @@ class OutputAtTest < Test::Unit::TestCase
end
should "output the runner using that path" do
assert_match '2 5,15 * * mon-fri blahblah', @output
assert_match '2 5,15 * * 1-5 blahblah', @output
end
end
@ -75,7 +75,7 @@ class OutputAtTest < Test::Unit::TestCase
end
should "output the runner using that path" do
assert_match '2 5,15 * * mon,wed,fri blahblah', @output
assert_match '2 5,15 * * 1,3,5 blahblah', @output
end
end