openstax_accounts 5.1.0 → 5.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,10 @@ module OpenStax
7
7
  describe CreateTempAccount, vcr: VCR_OPTS do
8
8
 
9
9
  before(:all) do
10
+ @previous_url = OpenStax::Accounts.configuration.openstax_accounts_url
11
+ @previous_enable_stubbing = OpenStax::Accounts.configuration.enable_stubbing
10
12
  OpenStax::Accounts.configuration.openstax_accounts_url = "http://localhost:2999/"
13
+ OpenStax::Accounts.configuration.enable_stubbing = false
11
14
  OpenStax::Accounts::Api.client.site = "http://localhost:2999/"
12
15
  end
13
16
 
@@ -27,8 +30,9 @@ module OpenStax
27
30
  end
28
31
 
29
32
  after(:all) do
30
- OpenStax::Accounts.configuration.openstax_accounts_url = "http://localhost:#{CAPYBARA_SERVER.port}/"
31
- OpenStax::Accounts::Api.client.site = "http://localhost:#{CAPYBARA_SERVER.port}/"
33
+ OpenStax::Accounts.configuration.openstax_accounts_url = @previous_url
34
+ OpenStax::Accounts.configuration.enable_stubbing = @previous_enable_stubbing
35
+ OpenStax::Accounts::Api.client.site = @previous_url
32
36
  end
33
37
 
34
38
  end
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: 5.1.0
4
+ version: 5.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Slavinsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-15 00:00:00.000000000 Z
11
+ date: 2015-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails