Show More
Commit Description:
* DRY the toggle button via application_helper.rb#toggle_button and _toggle_button.js.haml...
Commit Description:
* DRY the toggle button via application_helper.rb#toggle_button and _toggle_button.js.haml
* bootrapize the user_admin
* now considering user.enabled
* tidy up route
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 | ||||