Skip to content

Commit

Permalink
Merge branch 'master' into bump-to-0.13.0
Browse files Browse the repository at this point in the history
kenchan authored Jan 25, 2021
2 parents cd24670 + ae5eaad commit 58498d6
Showing 5 changed files with 31 additions and 49 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: test
on: push

jobs:
test-all:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
ruby-version: [2.4, 2.5, 2.6, 2.7, 3.0]

steps:
- uses: actions/checkout@v2

- uses: ruby/[email protected]
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

- run: bundle exec rake test:unit test:remote
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

10 changes: 5 additions & 5 deletions test/remote/gateways/remote_epsilon_convenience_store_test.rb
Original file line number Diff line number Diff line change
@@ -12,11 +12,11 @@ def test_convenience_store_purchase_successful
response = gateway.purchase(10000, valid_convenience_store, purchase_detail)

assert_equal true, response.success?
assert_match /\d{7}/, response.params['receipt_number']
assert_match /\d{4}\-\d{2}\-\d{2} \d{2}:\d{2}:\d{2}/, response.params['receipt_date']
assert_match /\d{4}\-\d{2}\-\d{2}/, response.params['convenience_store_limit_date']
assert_match %r!\Ahttp://.+!, response.params['convenience_store_payment_slip_url']
assert_match /\d{5}/, response.params['company_code']
assert_match(/\d{7}/, response.params['receipt_number'])
assert_match(/\d{4}\-\d{2}\-\d{2} \d{2}:\d{2}:\d{2}/, response.params['receipt_date'])
assert_match(/\d{4}\-\d{2}\-\d{2}/, response.params['convenience_store_limit_date'])
assert_match(%r!\Ahttp://.+!, response.params['convenience_store_payment_slip_url'])
assert_match(/\d{5}/, response.params['company_code'])
end
end

30 changes: 0 additions & 30 deletions test/remote/gateways/remote_epsilon_gmo_after_test.rb

This file was deleted.

7 changes: 5 additions & 2 deletions test/remote/gateways/remote_epsilon_test.rb
Original file line number Diff line number Diff line change
@@ -62,12 +62,15 @@ def test_purchase_with_three_d_secure_card_successful

assert_equal true, response.success?
assert_equal true, response.params['three_d_secure']
assert_match /\Ahttps?/, response.params['acs_url']
assert_match(/\Ahttps?/, response.params['acs_url'])
refute_empty response.params['pa_req']
end

VCR.use_cassette(:autheticate_three_d_secure_card_successful) do
response = gateway.authenticate(valid_three_d_secure_pa_res)
response = gateway.authenticate(
order_number: purchase_detail[:order_number],
three_d_secure_pa_res: valid_three_d_secure_pa_res
)
assert_equal true, response.success?
end
end

0 comments on commit 58498d6

Please sign in to comment.