coalescing_panda 4.1.3 → 4.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/coalescing_panda/canvas_batch.rb +2 -0
- data/app/models/coalescing_panda/lti_account.rb +1 -0
- data/app/models/coalescing_panda/workers/course_miner.rb +13 -1
- data/db/migrate/20150526144713_add_account_to_canvas_batches.rb +5 -0
- data/lib/coalescing_panda/version.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +17 -12
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +434 -0
- data/spec/dummy/log/test.log +1848 -0
- data/spec/models/coalescing_panda/workers/course_miner_spec.rb +14 -0
- metadata +3 -2
@@ -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.
|
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-
|
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
|