Show More
Commit Description:
change find(:xxx) to correct syntax for rails 4
Commit Description:
change find(:xxx) to correct syntax for rails 4
File last commit:
Show/Diff file:
Action:
test/concurrent/task_test_setup.rb | 18 lines | 333 B | text/x-ruby | RubyLexer |
ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../../config/environment")
def clear_all_tasks
Task.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