Sha256: 4be73670a48fbef2fafc4aae77cc8171a3861b686f4127e7066225dffeb9146c

Contents?: true

Size: 224 Bytes

Versions: 12

Compression:

Stored size: 224 Bytes

Contents

# Removes all cronjobs created by test
#
# after do
#   remove_all_test_cronjobs
# end
#
def remove_all_test_cronjobs
  CronEdit::Crontab.List.keys.each do |key|
    CronEdit::Crontab.Remove(key) if key =~ /test-/
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
adva-0.2.4 test/test_helper/extensions/cronjob.rb
adva-0.2.3 test/test_helper/extensions/cronjob.rb
adva-0.2.2 test/test_helper/extensions/cronjob.rb
adva-0.2.1 test/test_helper/extensions/cronjob.rb
adva-0.2.0 test/test_helper/extensions/cronjob.rb
adva-0.1.4 test/test_helper/extensions/cronjob.rb
adva-0.1.3 test/test_helper/extensions/cronjob.rb
adva-0.1.2 test/test_helper/extensions/cronjob.rb
adva-0.1.1 test/test_helper/extensions/cronjob.rb
adva-0.1.0 test/test_helper/extensions/cronjob.rb
adva_cms-0.0.1 test/test_helper/extensions/cronjob.rb
adva-0.0.1 adva_cms/test/test_helper/extensions/cronjob.rb