Show More
Commit Description:
added rspec_on_rails plugin not as svn externals (frozen)...
Commit Description:
added rspec_on_rails plugin not as svn externals (frozen)
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@134 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
test/concurrent/task_test_setup.rb
| 18 lines
| 340 B
| text/x-ruby
| RubyLexer
|
|
r30 | 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 | ||||