coalescing_panda 4.1.3 → 4.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -180,4 +180,18 @@ RSpec.describe CoalescingPanda::Workers::CourseMiner, :type => :model do
180
180
  expect(worker.standard_attributes(record, attributes)).to eq({"workflow_state" => "accepted"})
181
181
  end
182
182
  end
183
+
184
+ describe "#setup_batch" do
185
+ it 'should return a new batch if none are in progress' do
186
+ batch = worker.setup_batch
187
+ expect(batch.status).to eq 'Queued'
188
+ end
189
+
190
+ it 'should return a started batch if one exists' do
191
+ batch = worker.setup_batch
192
+ batch.update_attributes(status: 'Started')
193
+ batch = worker.setup_batch
194
+ expect(batch.status).to eq 'Started'
195
+ end
196
+ end
183
197
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coalescing_panda
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.3
4
+ version: 4.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Mills
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-05-22 00:00:00.000000000 Z
13
+ date: 2015-05-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -375,6 +375,7 @@ files:
375
375
  - db/migrate/20150210180516_add_context_to_canvas_batch.rb
376
376
  - db/migrate/20150506183335_create_coalescing_panda_assignment_groups.rb
377
377
  - db/migrate/20150506192717_add_assignment_group_id_to_assignments.rb
378
+ - db/migrate/20150526144713_add_account_to_canvas_batches.rb
378
379
  - lib/coalescing_panda.rb
379
380
  - lib/coalescing_panda/controller_helpers.rb
380
381
  - lib/coalescing_panda/engine.rb