openstax_accounts 7.5.0 → 7.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,8 +15,10 @@ module OpenStax
15
15
  end
16
16
 
17
17
  it 'can create users' do
18
- account_1 = FindOrCreateAccount.call(email: 'alice@example.com').outputs.account
18
+ account_1 = FindOrCreateAccount.call(email: 'alice@example.com', role: 'instructor').outputs.account
19
19
  expect(account_1).to be_persisted
20
+ expect(account_1.uuid).to match(/\A[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\z/i)
21
+ expect(account_1.role).to eq 'instructor'
20
22
 
21
23
  account_2 = FindOrCreateAccount.call(username: 'alice').outputs.account
22
24
  expect(account_2).to be_persisted
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstax_accounts
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.5.0
4
+ version: 7.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Slavinsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-22 00:00:00.000000000 Z
11
+ date: 2017-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails