Show More
Commit Description:
Merge pull request #17 from nattee/master...
Commit Description:
Merge pull request #17 from nattee/master upgrade to current working snapshot
References:
File last commit:
Show/Diff file:
Action:
test/concurrent/task_test_teardown.rb | 13 lines | 252 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
puts Task.where(status: Task::STATUS_COMPLETE).length
clear_all_tasks