canvas_sync 0.17.39 → 0.17.41

Sign up to get free protection for your applications and to get access to all the features.
@@ -329,7 +329,7 @@ RSpec.describe CanvasSync::JobBatches::Batch do
329
329
  it 'returns and does not enqueue callbacks' do
330
330
  batch = CanvasSync::JobBatches::Batch.new
331
331
  batch.on(event, SampleCallback)
332
- CanvasSync::JobBatches::Batch.redis { |r| r.hset("BID-#{batch.bid}", event, true) }
332
+ CanvasSync::JobBatches::Batch.redis { |r| r.hset("BID-#{batch.bid}", event, "true") }
333
333
 
334
334
  expect(batch).not_to receive(:push_callbacks)
335
335
  CanvasSync::JobBatches::Batch.enqueue_callbacks(event, batch.bid)
data/spec/spec_helper.rb CHANGED
@@ -14,6 +14,7 @@ require 'support/fake_canvas'
14
14
  require 'shoulda/matchers'
15
15
  require 'pry'
16
16
  require 'pry-nav'
17
+ require 'with_model'
17
18
 
18
19
  require 'sidekiq/testing'
19
20
  Sidekiq::Testing.fake!
@@ -26,6 +27,8 @@ Dir[File.dirname(__FILE__) + "/job_batching/support/**/*.rb"].each {|f| require
26
27
  ActiveRecord::Migration.maintain_test_schema!
27
28
 
28
29
  RSpec.configure do |config|
30
+ config.extend WithModel
31
+
29
32
  config.include FactoryGirl::Syntax::Methods
30
33
  config.use_transactional_fixtures = true
31
34
  config.infer_spec_type_from_file_location!
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.39
4
+ version: 0.17.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nate Collings
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-28 00:00:00.000000000 Z
11
+ date: 2023-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -234,8 +234,36 @@ dependencies:
234
234
  - - ">="
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
+ - !ruby/object:Gem::Dependency
238
+ name: with_model
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
237
251
  - !ruby/object:Gem::Dependency
238
252
  name: sidekiq
253
+ requirement: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - "<"
256
+ - !ruby/object:Gem::Version
257
+ version: '7.0'
258
+ type: :development
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - "<"
263
+ - !ruby/object:Gem::Version
264
+ version: '7.0'
265
+ - !ruby/object:Gem::Dependency
266
+ name: redis
239
267
  requirement: !ruby/object:Gem::Requirement
240
268
  requirements:
241
269
  - - ">="
@@ -466,6 +494,7 @@ files:
466
494
  - lib/canvas_sync/job_batches/sidekiq/web/views/pools.erb
467
495
  - lib/canvas_sync/job_batches/status.rb
468
496
  - lib/canvas_sync/jobs/begin_sync_chain_job.rb
497
+ - lib/canvas_sync/jobs/canvas_process_waiter.rb
469
498
  - lib/canvas_sync/jobs/report_checker.rb
470
499
  - lib/canvas_sync/jobs/report_processor_job.rb
471
500
  - lib/canvas_sync/jobs/report_starter.rb
@@ -497,6 +526,7 @@ files:
497
526
  - lib/canvas_sync/sidekiq_job.rb
498
527
  - lib/canvas_sync/version.rb
499
528
  - spec/canvas_sync/canvas_sync_spec.rb
529
+ - spec/canvas_sync/jobs/canvas_process_waiter_spec.rb
500
530
  - spec/canvas_sync/jobs/job_spec.rb
501
531
  - spec/canvas_sync/jobs/report_checker_spec.rb
502
532
  - spec/canvas_sync/jobs/report_processor_job_spec.rb
@@ -708,6 +738,7 @@ specification_version: 4
708
738
  summary: Gem for generating Canvas models and migrations and syncing data from Canvas
709
739
  test_files:
710
740
  - spec/canvas_sync/canvas_sync_spec.rb
741
+ - spec/canvas_sync/jobs/canvas_process_waiter_spec.rb
711
742
  - spec/canvas_sync/jobs/job_spec.rb
712
743
  - spec/canvas_sync/jobs/report_checker_spec.rb
713
744
  - spec/canvas_sync/jobs/report_processor_job_spec.rb