openstax_accounts 6.3.1 → 6.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/routines/openstax/accounts/find_or_create_account.rb +1 -1
- data/lib/openstax/accounts/version.rb +1 -1
- data/spec/cassettes/OpenStax_Accounts_FindOrCreateAccount/can_create_users.yml +76 -58
- data/spec/dummy/log/test.log +5851 -0
- data/spec/routines/openstax/accounts/find_or_create_account_spec.rb +1 -2
- data/spec/vcr_helper.rb +1 -0
- metadata +4 -4
@@ -31,9 +31,8 @@ module OpenStax
|
|
31
31
|
|
32
32
|
it 'passes names to the API when creating users' do
|
33
33
|
find_or_create_account_response = double('Response')
|
34
|
-
allow(find_or_create_account_response).to receive(:status).and_return(
|
34
|
+
allow(find_or_create_account_response).to receive(:status).and_return(201)
|
35
35
|
allow(find_or_create_account_response).to receive(:body).and_return('{"id":1}')
|
36
|
-
|
37
36
|
expect(OpenStax::Accounts::Api).to receive(:find_or_create_account).with(
|
38
37
|
email: 'bob@example.com', username: nil, password: nil,
|
39
38
|
first_name: 'Bob', last_name: 'Smith', full_name: 'Bob Smith'
|
data/spec/vcr_helper.rb
CHANGED
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: 6.3.
|
4
|
+
version: 6.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JP Slavinsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04
|
11
|
+
date: 2016-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -282,14 +282,14 @@ dependencies:
|
|
282
282
|
requirements:
|
283
283
|
- - ">="
|
284
284
|
- !ruby/object:Gem::Version
|
285
|
-
version:
|
285
|
+
version: 2.0.1
|
286
286
|
type: :development
|
287
287
|
prerelease: false
|
288
288
|
version_requirements: !ruby/object:Gem::Requirement
|
289
289
|
requirements:
|
290
290
|
- - ">="
|
291
291
|
- !ruby/object:Gem::Version
|
292
|
-
version:
|
292
|
+
version: 2.0.1
|
293
293
|
- !ruby/object:Gem::Dependency
|
294
294
|
name: vcr
|
295
295
|
requirement: !ruby/object:Gem::Requirement
|