canvas_sync 0.17.7 → 0.17.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -168,7 +168,7 @@ RSpec.describe CanvasSync::JobBatches::Batch do
168
168
  CanvasSync::JobBatches::Batch.process_failed_job(bid, 'failed-job-id')
169
169
  CanvasSync::JobBatches::Batch.process_failed_job(bid, failed_jid)
170
170
  failed = CanvasSync::JobBatches::Batch.redis { |r| r.smembers("BID-#{bid}-failed") }
171
- expect(failed).to eq(['xxx', 'failed-job-id'])
171
+ expect(failed).to contain_exactly('xxx', 'failed-job-id')
172
172
  end
173
173
  end
174
174
  end
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,6 @@
1
1
  ENV["RAILS_ENV"] ||= 'test'
2
+ ENV['REDIS_URL'] ||= 'redis://localhost:6379/9'
3
+
2
4
  require "canvas_sync"
3
5
  require File.expand_path("../dummy/config/environment.rb", __FILE__)
4
6
  # Rails::Generators.invoke("canvas_sync:install", ["--models", "all"], destination_root: Rails.root)
@@ -19,7 +21,6 @@ Sidekiq::Testing.server_middleware do |chain|
19
21
  chain.add CanvasSync::JobBatches::Sidekiq::ServerMiddleware
20
22
  end
21
23
 
22
- require 'fakeredis/rspec'
23
24
  Dir[File.dirname(__FILE__) + "/job_batching/support/**/*.rb"].each {|f| require f }
24
25
 
25
26
  ActiveRecord::Migration.maintain_test_schema!
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canvas_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.7
4
+ version: 0.17.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nate Collings
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-13 00:00:00.000000000 Z
11
+ date: 2021-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -421,6 +421,7 @@ files:
421
421
  - lib/canvas_sync/job_batches/pool.rb
422
422
  - lib/canvas_sync/job_batches/redis_model.rb
423
423
  - lib/canvas_sync/job_batches/redis_script.rb
424
+ - lib/canvas_sync/job_batches/schedule_callback.lua
424
425
  - lib/canvas_sync/job_batches/sidekiq.rb
425
426
  - lib/canvas_sync/job_batches/sidekiq/web.rb
426
427
  - lib/canvas_sync/job_batches/sidekiq/web/helpers.rb