forked from KaiaHealth/sidekiq-cron-tasks
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The new task will allow for clearing loaded Sidekiq::Cron tasks manually. This was happening as part of our load, but also giving the option to clear without loading.
- Loading branch information
Showing
8 changed files
with
61 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,6 @@ cache: bundler | |
gemfile: | ||
- Gemfile | ||
- gemfiles/Gemfile.rails-4.2-stable | ||
|
||
services: | ||
- redis-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
module Sidekiq | ||
module Cron | ||
module Tasks | ||
VERSION = '0.2.0' | ||
VERSION = '0.3.0' | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
require "test_helper" | ||
require "minitest/spec" | ||
|
||
module Sidekiq::Cron | ||
class RakeTest < ActiveSupport::TestCase | ||
extend Minitest::Spec::DSL | ||
|
||
let(:rake) { Rake::Application.new } | ||
|
||
%w[sidekiq_cron:load sidekiq_cron:clear].each do |task_name| | ||
before do | ||
Rake.application = rake | ||
Rake.load_rakefile( | ||
GEM_LIB_PATH.join("tasks/sidekiq_cron/tasks.rake").to_s | ||
) | ||
Rake::Task.define_task(:environment) | ||
end | ||
|
||
describe task_name do | ||
it "runs" do | ||
rake[task_name].invoke | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters