Show More
Commit Description:
added terminated field to grader process...
Commit Description:
added terminated field to grader process git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@374 6386c4cd-e34a-4fa8-8920-d93eb39b512e
File last commit:
Show/Diff file:
Action:
test/concurrent/task_test_setup.rb | 18 lines | 340 B | text/x-ruby | RubyLexer |
ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../../config/environment")
def clear_all_tasks
Task.find(:all).each do |task|
task.destroy
end
end
clear_all_tasks
(1..1000).each do |i|
Task.create(:id => i,
:submission_id => i,
:status => Task::STATUS_INQUEUE)
end