Added failing test to show problem with #combine method when two commands are in one every statement

This commit is contained in:
Javan Makhmali 2009-07-13 16:24:23 -04:00
parent ef219c8665
commit e2c30ca299

View File

@ -84,4 +84,21 @@ class OutputCommandTest < Test::Unit::TestCase
end end
end end
context "An every statement with two commands in it" do
setup do
@output = Whenever.cron \
<<-file
every 1.hour do
command "first"
command "second"
end
file
end
should "output both commands" do
assert_match "0 * * * * first", @output
assert_match "0 * * * * second", @output
end
end
end end