Skip to content

Commit

Permalink
Merge pull request #5 from viafintech/bug/use-correct-default-currency
Browse files Browse the repository at this point in the history
Fix default currency on transactions
  • Loading branch information
tobischo committed Jun 20, 2024
2 parents 6087269 + a24c037 commit a7c4ac9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,26 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
ruby-version: ['3.0']
ruby: ['3.0', '3.1', '3.2', '3.3']
gemfile:
- gemfiles/Gemfile-activemodel-6.0.x
- gemfiles/Gemfile-activemodel-6.1.x
- gemfiles/Gemfile-activemodel-7.0.x
- gemfiles/Gemfile-activemodel-7.1.x

name: Ruby ${{ matrix.ruby }} / Gemfile {{ matrix.gemfile }}

steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108

- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies for ${{ matrix.gemfile}}
run: bundle install --gemfile=${{ matrix.gemfile }}
ruby-version: ${{ matrix.ruby }}

- name: Install dependencies for ${{ matrix.gemfile }}
run: bundle install --gemfile=${{ matrix.gemfile }}

- name: Run tests
run: bundle exec rspec
5 changes: 0 additions & 5 deletions gemfiles/Gemfile-activemodel-6.0.x

This file was deleted.

2 changes: 1 addition & 1 deletion lib/sps_king/transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def initialize(attributes = {})
self.requested_date ||= DEFAULT_REQUESTED_DATE
self.reference ||= 'NOTPROVIDED'
self.batch_booking = true if self.batch_booking.nil?
self.currency ||= 'EUR'
self.currency ||= 'CHF'
end

protected
Expand Down

0 comments on commit a7c4ac9

Please sign in to comment.