bloom_remit 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -67,7 +67,7 @@ RSpec.configure do |config|
67
67
  BloomRemit.configure do |c|
68
68
  c.token = ENV["BLOOM_REMIT_TOKEN"]
69
69
  c.secret = ENV["BLOOM_REMIT_SECRET"]
70
- c.url = ENV["BLOOM_REMIT_URL"]
70
+ c.sandbox = true
71
71
  c.agent_id = ENV["BLOOM_REMIT_AGENT_ID"]
72
72
  c.sender_id_method = c.sender_id_method_default
73
73
  end
@@ -10,7 +10,7 @@ module BloomRemit
10
10
  c.token = ENV["BLOOM_REMIT_TOKEN"]
11
11
  c.secret = ENV["BLOOM_REMIT_SECRET"]
12
12
  c.agent_id = ENV["BLOOM_REMIT_AGENT_ID"]
13
- c.url = ENV["BLOOM_REMIT_URL"]
13
+ c.sandbox = true
14
14
  end
15
15
 
16
16
  user = create(:bloom_remit_dummy_sub_user)
@@ -8,15 +8,15 @@ module BloomRemit
8
8
  c.token = "token"
9
9
  c.secret = "secret"
10
10
  c.agent_id = "agent_id"
11
- c.url = "url.com"
11
+ c.sandbox = true
12
12
  end
13
13
 
14
14
  client = described_class.execute.client
15
15
 
16
- expect(client.token).to eq "token"
17
- expect(client.secret).to eq "secret"
16
+ expect(client.api_token).to eq "token"
17
+ expect(client.api_secret).to eq "secret"
18
18
  expect(client.agent_id).to eq "agent_id"
19
- expect(client.url).to eq "url.com"
19
+ expect(client.host).to eq BloomRemitClient::STAGING
20
20
  end
21
21
 
22
22
  end
@@ -6,7 +6,7 @@ module BloomRemit
6
6
 
7
7
  context "successful response" do
8
8
  let(:remote_response) do
9
- build(:bloom_remit_client_create_payment_response, {
9
+ build(:bloom_remit_client_responses_payments_create, {
10
10
  success: true,
11
11
  body: {"i" => "am body"},
12
12
  })
@@ -25,7 +25,7 @@ module BloomRemit
25
25
 
26
26
  context "unsuccessful response" do
27
27
  let(:remote_response) do
28
- build(:bloom_remit_client_create_payment_response, {
28
+ build(:bloom_remit_client_responses_payments_create, {
29
29
  success: false,
30
30
  body: {"status"=>"500", "error"=>"Internal Server Error"},
31
31
  })
@@ -22,7 +22,7 @@ module BloomRemit
22
22
  Engine.routes.url_helpers.api_v1_txn_url(txn, secret: txn.secret)
23
23
  end
24
24
  let(:client) { instance_double(BloomRemitClient::Client) }
25
- let(:response) { build(:bloom_remit_client_create_payment_response) }
25
+ let(:response) { build(:bloom_remit_client_responses_payments_create) }
26
26
 
27
27
  it "posts the txn to Bloom Remit" do
28
28
  expect(client).to receive(:create_payment).with(
@@ -4,7 +4,7 @@ VCR.configure do |c|
4
4
  c.cassette_library_dir = 'spec/fixtures/cassettes'
5
5
  c.hook_into :webmock
6
6
  c.configure_rspec_metadata!
7
- sensitive_vars = %w[BLOOM_REMIT_TOKEN BLOOM_REMIT_SECRET]
7
+ sensitive_vars = %w[BLOOM_REMIT_TOKEN BLOOM_REMIT_SECRET BLOOM_REMIT_AGENT_ID]
8
8
  sensitive_vars.each do |var|
9
9
  c.filter_sensitive_data("[#{var}]") { ENV[var] }
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bloom_remit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-01 00:00:00.000000000 Z
11
+ date: 2016-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 0.4.0
61
+ version: 0.7.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 0.4.0
68
+ version: 0.7.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sidekiq
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -417,6 +417,7 @@ files:
417
417
  - spec/dummy/config/boot.rb
418
418
  - spec/dummy/config/database.yml
419
419
  - spec/dummy/config/database.yml.sample
420
+ - spec/dummy/config/database.yml.travis
420
421
  - spec/dummy/config/environment.rb
421
422
  - spec/dummy/config/environments/development.rb
422
423
  - spec/dummy/config/environments/production.rb
@@ -520,6 +521,7 @@ test_files:
520
521
  - spec/dummy/config/boot.rb
521
522
  - spec/dummy/config/database.yml
522
523
  - spec/dummy/config/database.yml.sample
524
+ - spec/dummy/config/database.yml.travis
523
525
  - spec/dummy/config/environment.rb
524
526
  - spec/dummy/config/environments/development.rb
525
527
  - spec/dummy/config/environments/production.rb
@@ -580,4 +582,3 @@ test_files:
580
582
  - spec/support/shoulda-matchers.rb
581
583
  - spec/support/storext_matchers.rb
582
584
  - spec/support/vcr.rb
583
- has_rdoc: