coalescing_panda 4.1.26 → 4.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -65,6 +65,17 @@ RSpec.describe CoalescingPanda::Workers::CourseMiner, :type => :model do
65
65
  end
66
66
  end
67
67
 
68
+ describe '#enrollment_states' do
69
+ it 'builds without option' do
70
+ expect(worker.enrollment_states).to eq(['active', 'invited'])
71
+ end
72
+
73
+ it 'builds with option' do
74
+ miner = CoalescingPanda::Workers::CourseMiner.new(course, [:include_complete])
75
+ expect(miner.enrollment_states).to eq(['active', 'invited', 'completed'])
76
+ end
77
+ end
78
+
68
79
  describe '#api_client' do
69
80
  it 'returns a bearcat API client' do
70
81
  expect(worker.api_client.class).to eq Bearcat::Client
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.26
4
+ version: 4.2.0
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-09-29 00:00:00.000000000 Z
13
+ date: 2015-09-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails